Logstash config unable to load


(Abhishek) #1

While running logstash config on my windows server I am getting this error.
-java.lqng.illegqlstateException:org.jruby.exceptions.Raiseexceptions:
Please help to fix.


(Christian Dahlqvist) #2

It would probably be easier for someone to help if you provided your config and some more context.


(Abhishek) #3

I have kept the config file at home\logstash\bin\test.conf

input {
Stdin{ }

output {
elasticsearch { hosts => [ "local host:9200"] }
stdout { }
}


(Adrien) #4

Maybe try the --config.test_and_exit to see a more explicited error message.


(Abhishek) #5

Please find the error log.

D:\logstash-6.2.2\logstash-6.2.2\bin>logstash -f D:\logstash-6.2.2\logstash-6.2.
2\config\beat.conf --config.test_and_exit
Sending Logstash's logs to D:/logstash-6.2.2/logstash-6.2.2/logs which is now co
nfigured via log4j2.properties
[2018-02-27T20:31:55,196][INFO ][logstash.modules.scaffold] Initializing module
{:module_name=>"fb_apache", :directory=>"D:/logstash-6.2.2/logstash-6.2.2/module
s/fb_apache/configuration"}
[2018-02-27T20:31:55,227][INFO ][logstash.modules.scaffold] Initializing module
{:module_name=>"netflow", :directory=>"D:/logstash-6.2.2/logstash-6.2.2/modules/
netflow/configuration"}
[2018-02-27T20:31:55,572][WARN ][logstash.config.source.multilocal] Ignoring the
'pipelines.yml' file because modules or command line options are specified
[2018-02-27T20:31:55,634][INFO ][logstash.config.source.local.configpathloader]
No config files found in path {:path=>"D:/logstash-6.2.2/logstash-6.2.2/config/b
eat.conf"}
[2018-02-27T20:31:55,650][ERROR][logstash.config.sourceloader] No configuration
found in the configured sources.
Configuration OK
[2018-02-27T20:31:55,650][INFO ][logstash.runner ] Using config.test_an
d_exit mode. Config Validation Result: OK. Exiting Logstash


(Christian Dahlqvist) #6

Do you really have a space there or is this a cut and paste error?


(system) #7

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