Logstash Startup issue

unable to start logstash, while Elasticsearch and kibana both are up and running.

logtstash.conf looks like
image

no change on any other file
logstash.yml has everything commented except "pipeline.ordered: auto"

Hello @shivani_chittauri

Welcome to Elastic Community :slight_smile: !!!

There is small error in your config code, in output plugin of Elasticsearch code block should be closed first then should proceed on to the stdout code block like the below

input{
stdin{}
}

output
{
elasticsearch{
hosts => ["http://localhost:9200"]
user => "<Your-es-username>"
password => "<Your-es-pwd>"
}

stdout
{
codec => rubydebug
}

}

The relative filepath should be mentioned in quotes.

Try like the below

.\logstash.bat -f "..\config\logstash.conf"

Keep Posted!!! Thanks!!! :slight_smile:

i am not using user and password for ES.
changed the logstash.conf and also tried
.\logstash.bat -f "..\config\logstash.conf", but giving same issue

logstash should have logged an error about the configuration to the console. I would suggest editing bin/logstash.bat and changing @echo off to @echo on. That will let you make sure it is taking the right path through the script.

got this

i am not using user and password for ES.
changed the logstash.conf and also tried
.\logstash.bat -f "..\config\logstash.conf", but giving same issue

OK, now edit setup.bat and make the same change to @echo on.

it resolved. I was having JAVA_OPTS set up as an environment variable, though it was giving warning, but actually was error, so i replaced JAVA_OPTS with LS_JAVA_OPTS

1 Like

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