Logstash is not starting

I am trying to initiate logstash how ever getting below error. Can this forum help?

C:\Users\h158880\Documents\lib\logstash-7.8.1\bin>logstash -f apache_logsatsh.conf
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option UseConcMarkSweepGC; support was removed in 14.0
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option CMSInitiatingOccupancyFraction; support was removed in 14.0
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option UseCMSInitiatingOccupancyOnly; support was removed in 14.0
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules (file:/C:/Users/h158880/Documents/lib/logstash-7.8.1/logstash-core/lib/jars/jruby-complete-9.2.11.1.jar) to field java.io.Console.cs
WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.Modules
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sending Logstash logs to C:/Users/h158880/Documents/lib/logstash-7.8.1/logs which is now configured via log4j2.properties
[2020-08-15T13:36:37,034][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2020-08-15T13:36:37,117][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.8.1", "jruby.version"=>"jruby 9.2.11.1 (2.5.7) 2020-03-25 b1f55b1a40 Java HotSpot(TM) 64-Bit Server VM 14.0.2+12-46 on 14.0.2+12-46 +indy +jit [mswin32-x86_64]"}
[2020-08-15T13:36:37,616][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/Users/h158880/Documents/lib/logstash-7.8.1/bin/apache_logsatsh.conf"}
[2020-08-15T13:36:37,649][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2020-08-15T13:36:38,084][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2020-08-15T13:36:42,983][INFO ][logstash.runner ] Logstash shut down.

put the config in the bin folder

it is placed in bin folder

I have tried installing Java 11 and Java 14 and same error. Any idea Vivek?

Maybe the actual file does not have the logsatsh typo in its name?

still same. Typo i figured and changed the name. But still same error.

C:\Users\h158880\Documents\lib\logstash-7.8.1\bin>logstash -f logstash.conf
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules (file:/C:/Users/h158880/Documents/lib/logstash-7.8.1/logstash-core/lib/jars/jruby-complete-9.2.11.1.jar) to field java.io.Console.cs
WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.Modules
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sending Logstash logs to C:/Users/h158880/Documents/lib/logstash-7.8.1/logs which is now configured via log4j2.properties
[2020-08-15T21:09:34,222][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2020-08-15T21:09:34,465][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.8.1", "jruby.version"=>"jruby 9.2.11.1 (2.5.7) 2020-03-25 b1f55b1a40 Java HotSpot(TM) 64-Bit Server VM 11.0.8+10-LTS on 11.0.8+10-LTS +indy +jit [mswin32-x86_64]"}
[2020-08-15T21:09:35,456][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/Users/h158880/Documents/lib/logstash-7.8.1/bin/logstash.conf"}
[2020-08-15T21:09:35,525][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2020-08-15T21:09:36,169][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2020-08-15T21:09:40,798][INFO ][logstash.runner ] Logstash shut down.

Enable log.level debug. If you get the debug message "Reading config file" then that suggests a permissions problem, logstash cannot read the file. If you do not get that debug message then Dir.glob of that path is not returning anything, which really suggests the file does not exist.

Using config.test_and_exit mode. Config Validation Result: OK. Exiting Logstash
looks like config file is fine and is there in bin directory i just verified.

Maybe this will sound stupid but move the whole Logstash directory to C:
Logstash causes problems in windows with long paths

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