Logstash config unable to load

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

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

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

input {
Stdin{ }

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

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

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

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

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