Logstash is not starting.. i have installed a new version of Logstash 7.16.1 , it crashes saying fatal error

Logstash is not starting, I have installed Logstash 7.16.1, this is the error i am getting in logstash

[2021-12-15T17:28:43,113][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2021-12-15T17:28:43,238][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600, :ssl_enabled=>false}
[2021-12-15T17:28:48,366][INFO ][logstash.runner ] Logstash shut down.
[2021-12-15T17:28:48,381][FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]

See this answer.

input { stdin { } }

output {

Elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }

}

I have saved this in a logstash conf file.. and running a command from Powershell bin/logstash -f logstash.conf

I am running the command from the command line : i have given the full path of the file , even then it keeps saying config file not found ..

PS C:\ELK3\Newfolder\logstash-7.16.1> bin/logstash -f C:\ELK3\Newfolder\logstash-7.16.1\logstash.conf
"Using bundled JDK: ."
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to C:/ELK3/Newfolder/logstash-7.16.1/logs which is now configured via log4j2.properties
[2021-12-16T04:56:51,648][INFO ][logstash.runner ] Log4j configuration path used is: C:\ELK3\Newfolder\logstash-7.16.1\config\log4j2.properties
[2021-12-16T04:56:51,679][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.16.1", "jruby.version"=>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.13+8 on 11.0.13+8 +indy +jit [mswin32-x86_64]"}
[2021-12-16T04:56:51,882][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2021-12-16T04:56:51,929][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/ELK3/Newfolder/logstash-7.16.1/logstash.conf"}
[2021-12-16T04:56:51,944][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
Configuration OK
[2021-12-16T04:56:51,944][INFO ][logstash.runner ] Using config.test_and_exit mode. Config Validation Result: OK. Exiting Logstash

The file at that path, if it exists, is not readable by the Logstash process. What are its permissions? How is Logstash being run?

It is a Windows Machine and it is in the C drive and all permissions are there..
I am running Logstash from the Powershell window

i have given the file path in the logstash.yml file .. in the path config location...

can some one please tell me, where is it looking for the path...i m not understanding ... is there a document to refer for this

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