Open kares opened 4 years ago
I think I also hit a similar situation.
[ERROR][filewatch.tailmode.handlers.grow]
read_to_eof: general error reading D:/xxxxx.csv
{
"error"=>"#<NoMethodError: undefined method `increment_position' for nil:NilClass>",
"backtrace"=>[
"C:/ELK/logstash-7.1.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.1.10/lib/filewatch/sincedb_collection.rb:144:in `increment'",
"C:/ELK/logstash-7.1.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.1.10/lib/filewatch/tail_mode/handlers/base.rb:58:in `block in controlled_read'",
"org/jruby/RubyArray.java:1792:in `each'",
"C:/ELK/logstash-7.1.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.1.10/lib/filewatch/tail_mode/handlers/base.rb:55:in `block in controlled_read'"]
}
What is the reason for these logs? Any idea @kares ?
Thanks Chris, definitely a (concurrency) bug but I believe it was handled in plugin's most recent releases.
You might want to bin\logstash-plugin update logstash-input-file
to install the latest (4.2.1) version.
Please share if you have any parameter customizations, esp. the numeric parameters, for your plugin instance.
Hi @kares Could you please help me to download the version 4.2.1? I am new to ELK. Thanks.
the plugin in certain rare cases runs into a concurrency problem, while trying to read :
... the watched file entry got removed in this case but the plugin still triggered a read attempt. we need to investigate what all potential consequences are around such issues (e.g. if they could cause event loss from other parts).