Hi
I am trying to process an avro file from logstash.
version
- jdk 1.8
- logstash 6.2.2
- https://github.com/logstash-plugins/logstash-codec-avro 3.2.3
logstash test.conf
input {
file {
path => ["test.avro"]
codec => avro {
schema_uri => 'test.avsc'
}
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
output {
stdout { }
}
execute
logstash --log.level debug -f test.conf
error message
...
[DEBUG][logstash.inputs.file] _open_file: test.avro: opening
[DEBUG][logstash.inputs.file] test.avro: initial create, no sincedb, seeking to beginning of file
...
[DEBUG][logstash.inputs.file] observe_read_file: general error reading test.avro - error: #<ArgumentError: negative length -40 given>
If you read the avro file from java, it works fine.
How can I fix the error?