Logstash works fine with the following config in the inital-pipeline.conf file.
input {
generator {
lines => [
"line 1",
"line 2"
]
count => 3
}
}
output { stdout { } }
With the following command:
~/Documents/elk/logstash-2.4.0 $ bin/logstash -f initial-pipeline.conf
It gives the following results:
Settings: Default pipeline workers: 4
Pipeline main started
2016-09-26T18:18:34.420Z Denis-iMac27.local line 1
2016-09-26T18:18:34.431Z Denis-iMac27.local line 2
2016-09-26T18:18:34.431Z Denis-iMac27.local line 1
2016-09-26T18:18:34.432Z Denis-iMac27.local line 2
2016-09-26T18:18:34.432Z Denis-iMac27.local line 1
2016-09-26T18:18:34.433Z Denis-iMac27.local line 2
Pipeline main has been shutdown
stopping pipeline {:id=>"main"}
Trying the following config in first-pipeline.conf file
input {
file {
path => "NOTICES.TXT"
start_position => beginning
ignore_older => 0
}
}
output { stdout { } }
With the following command:
~/Documents/elk/logstash-2.4.0 $ bin/logstash -f first-pipeline.conf
It fails with the following shell errors:
Settings: Default pipeline workers: 4
Pipeline aborted due to error {:exception=>"ArgumentError", :backtrace=>["/Users/Denis/Documents/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-input-file-2.2.5/lib/logstash/inputs/file.rb:187:in register'", "org/jruby/RubyArray.java:1613:ineach'", "/Users/Denis/Documents/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-input-file-2.2.5/lib/logstash/inputs/file.rb:185:in register'", "/Users/Denis/Documents/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:330:instart_inputs'", "org/jruby/RubyArray.java:1613:in each'", "/Users/Denis/Documents/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:329:instart_inputs'", "/Users/Denis/Documents/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:180:in start_workers'", "/Users/Denis/Documents/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:136:inrun'", "/Users/Denis/Documents/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/agent.rb:491:in `start_pipeline'"], :level=>:error}
stopping pipeline {:id=>"main"}.
Logstash also fails with all other config filters, inputs and output I've tried so far !!!
Unbelievable !!! But you're right, everything works fine when using absolute path...
I cannot even begin to understand the poor quality of error message for such trivial error.
I'm just starting experiencing logstash and I've got some dozens of xml file to map into elastic. My hope was to use logstash and not a developing xml transformation myself to generate json files for import into elastic.
Is this kind of logstash error message a bug in 2.4 ... or should I expect any errors to be reported in such cryptic fashion ?
Hi there!
It seems like I have a very similar problem. However, I have an absolute path and still get the same error.
I copy my conf file and the error:
input {
file {
path => "/Users/agarciah/Disco_D/Consultoria/Lineas/lineas.csv"
type => "lineas"
start_position => "beginning"
}
}
Thanks for your support. I changed the sincedb_path:
input {
file {
path => "/Users/agarciah/Disco_D/Consultoria/Lineas/lineas.csv"
type => "lineas"
start_position => "beginning"
sincedb_path => "/Users/agarciah/Disco_D/Consultoria/Lineas/sincedb.txt"
}
}
I can see sincedb.txt after running logstash but the same error message appears.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.