Hi!
I was trying to upgrade Logstash from version 6.2.4 to 6.6.0. I'm using windows 10
Logstash Version 6.2.4 runs fine and send my data to elasticsearch, but trying to do the same thing with version 6.6.0, using the same .conf file it send me this error.
[2019-01-30T10:58:16,106][INFO ][filewatch.observingtail ] START, creating Discoverer, Watch with file and sincedb collections
[2019-01-30T10:58:16,117][ERROR][logstash.pipeline ] A plugin had an unrecoverable error. Will restart this plugin.
Pipeline_id:main
Plugin: <LogStash::Inputs::File start_position=>"beginning", path=>["C:\\Users\\JOSEGA\\Documents\\Elastic\\1DISTCYBERFINANCIAL.csv"], id=>"daf6695aceca3e0add9a5007d61e0e081a4bf553ea002f87d2fff1aa4fec3333", sincedb_path=>"/dev/null", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_08fabd6c-d88a-44f3-bf58-048364af4870", enable_metric=>true, charset=>"UTF-8">, stat_interval=>1.0, discover_interval=>15, sincedb_write_interval=>15.0, delimiter=>"\n", close_older=>3600.0, mode=>"tail", file_completed_action=>"delete", sincedb_clean_after=>1209600.0, file_chunk_size=>32768, file_chunk_count=>140737488355327, file_sort_by=>"last_modified", file_sort_direction=>"asc">
Error: No such file or directory - C:/dev/null
Exception: Errno::ENOENT
Stack: org/jruby/RubyFile.java:366:in `initialize'
org/jruby/RubyIO.java:1154:in `open'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/fileutils.rb:1167:in `block in touch'
org/jruby/RubyArray.java:1734:in `each'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/fileutils.rb:1161:in `touch'
C:/Users/JOSEGA/Documents/Elastic/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.9/lib/filewatch/sincedb_collection.rb:22:in `initialize'
C:/Users/JOSEGA/Documents/Elastic/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.9/lib/filewatch/observing_base.rb:62:in `build_watch_and_dependencies'
C:/Users/JOSEGA/Documents/Elastic/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.9/lib/filewatch/observing_base.rb:56:in `initialize'
C:/Users/JOSEGA/Documents/Elastic/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.9/lib/logstash/inputs/file.rb:332:in `start_processing'
C:/Users/JOSEGA/Documents/Elastic/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.9/lib/logstash/inputs/file.rb:337:in `run'
C:/Users/JOSEGA/Documents/Elastic/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:409:in `inputworker'
C:/Users/JOSEGA/Documents/Elastic/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:403:in `block in start_input'
This log replys over and over many times. I don't know if there is a bug or something, as I mentioned with version 6.2.4 works and with version 6.6.0 doesn't
This is my .conf
input{
file{
path => "C:\Users\JOSEGA\Documents\Elastic\1DISTCYBERFINANCIAL.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv{
separator => ","
columns => ["server_name","application","sub_application_name","job_member_name","order_date","start_time","end_time","run_time",
"average_runtime","host","agent_elapsed_time","completion_status"]
}
mutate{ convert => ["run_time", "integer"]}
mutate{ convert => ["average_runtime", "integer"]}
mutate{ convert => ["agent_elapsed_time", "integer"]}
date{
match => ["start_time", "MMMM d yyyy H mm ss"]
}
}
output {
stdout { codec => rubydebug}
}