Hi,
I am getting this error when I am running 2nd config file in same folder of logstash
An unexpected error occurred! :error => can't convert nil into String, :backtrace => ["org/jruby/RubyFileTest.java:95:in directory?'", "org/jruby/RubyFileTest.java:87:in
directory?'", "/home/elk/logstash-5.5.1/logstash-core/lib/logstash/settings.rb:460:in value'", "org/jruby/RubyKernel.java:1858:in
tap'", "/home/elk/logstash-5.5.1/logstash-core/lib/logstash/settings.rb:459:in value'", "/home/elk/logstash-5.5.1/logstash-core/lib/logstash/settings.rb:59:in
get_value'", "/home/elk/logstash-5.5.1/logstash-core/lib/logstash/environment.rb:75:in LogStash'", "org/jruby/RubyProc.java:281:in
call'", "/home/elk/logstash-5.5.1/logstash-core/lib/logstash/settings.rb:123:in post_process'", "org/jruby/RubyArray.java:1613:in
each'", "/home/elk/logstash-5.5.1/logstash-core/lib/logstash/settings.rb:122:in post_process'", "/home/elk/logstash-5.5.1/logstash-core/lib/logstash/runner.rb:216:in
execute'", "/home/elk/logstash-5.5.1/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in run'", "/home/elk/logstash-5.5.1/logstash-core/lib/logstash/runner.rb:209:in
run'", "/home/elk/logstash-5.5.1/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in run'", "/home/elk/logstash-5.5.1/lib/bootstrap/environment.rb:71:in
(root)'"]
Below is my config file-
input{
kafka{
bootstrap_servers => "10.100.208.97:9092"
topics => ['AnomalyStreamer']
}
}
output{
elasticsearch{
hosts => ['localhost:9200']
index => "anamoly"
user => logstash_internal
password => changeme
}
stdout{ codec => rubydebug}
}
This is the command using which I run the 2nd config file-
bin/logstash -f anamoly.conf --path.data