Block in Start_input

I am getting the following error:
S:/ELK/logstash-6.6.0/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-inp
ut-file-4.1.9/lib/filewatch/observing_base.rb:62:in build_watch_and_dependencie s' S:/ELK/logstash-6.6.0/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-inp ut-file-4.1.9/lib/filewatch/observing_base.rb:56:in initialize'
S:/ELK/logstash-6.6.0/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-inp
ut-file-4.1.9/lib/logstash/inputs/file.rb:332:in start_processing' S:/ELK/logstash-6.6.0/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-inp ut-file-4.1.9/lib/logstash/inputs/file.rb:337:in run'
S:/ELK/logstash-6.6.0/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:409:
in inputworker' S:/ELK/logstash-6.6.0/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:403: in block in start_input'
[2019-01-30T22:16:59,338][WARN ][logstash.runner ] SIGINT received. Shu
tting down.
[2019-01-30T22:16:59,479][INFO ][filewatch.observingtail ] START, creating Disc
overer, Watch with file and sincedb collections
[2019-01-30T22:16:59,479][ERROR][logstash.pipeline ] A plugin had an unre
coverable error. Will restart this plugin.
Pipeline_id:main
Plugin: <LogStash::Inputs::File start_position=>"beginning", path=>["S:\ELK\
data\studymig.csv"], id=>"95feb22b93adbfd983268e507d97aca7fa72ecbb0e99e49412e54
873ac5163dd", sincedb_path=>"\dev\null", enable_metric=>true, codec=><LogStash
::Codecs::Plain id=>"plain_4d669fa9-f123-4d82-9487-881f6f94f6f5", enable_metric=

true, charset=>"UTF-8">, stat_interval=>1.0, discover_interval=>15, sincedb_wri
te_interval=>15.0, delimiter=>"\n", close_older=>3600.0, mode=>"tail", file_comp
leted_action=>"delete", sincedb_clean_after=>1209600.0, file_chunk_size=>32768,
file_chunk_count=>140737488355327, file_sort_by=>"last_modified", file_sort_dire
ction=>"asc">
Error: No such file or directory - S:\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 ' S:/ELK/logstash-6.6.0/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-inp ut-file-4.1.9/lib/filewatch/sincedb_collection.rb:22:in initialize'
S:/ELK/logstash-6.6.0/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-inp
ut-file-4.1.9/lib/filewatch/observing_base.rb:62:in build_watch_and_dependencie s' S:/ELK/logstash-6.6.0/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-inp ut-file-4.1.9/lib/filewatch/observing_base.rb:56:in initialize'
S:/ELK/logstash-6.6.0/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-inp
ut-file-4.1.9/lib/logstash/inputs/file.rb:332:in start_processing' S:/ELK/logstash-6.6.0/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-inp ut-file-4.1.9/lib/logstash/inputs/file.rb:337:in run'
S:/ELK/logstash-6.6.0/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:409:
in inputworker' S:/ELK/logstash-6.6.0/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:403: in block in start_input'

The conf file is below:

input{

file{
path =>"S:\ELK\data\studymig.csv"
start_position => "beginning"
sincedb_path => "\dev\null"
}

}

filter {
csv {
separator =>","
columns =>["a","b","c","d","e"]
}

}
output {
elasticsearch {
hosts=>"localhost"
index =>"studymig"
document_type =>"study_status"
}
stdout {
codec => rubydebug
}
}

2 Likes

If you are running on Windows and you want to suppress the use of a persistent sincedb then set

sincedb_path => "NUL"

not /dev/null.

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.