Unable to start logstash getting error

try below.

logstash -e "input {stdin {}}output {stdout {}}" --debug

Everything looks fine to me.. Some environment is the issue, coz- am able to run w/o any issues. @camarar also able to start logstash.

I feel something is wrong with your Java/Logstash. Dont mind but try a new copy of logstash. Lets give it a try. I know thats not a solution, but we can pinpoint that, the problem is with the installation or something else.

You might have already visited those topics, just incase if you missed.

1 Like

@Shiv_Gupta, Everything is ok.

Try to follow this step, please:

  1. Start your Elasticsearch and wait Elasticsearch to start completly.
  2. use the telnet command "telnet localhost 9200" and verify if your 9200 port is up.
  3. Start your Logstash.

After this steps, send to us a print of your command window.

Hello camarar,

please find attached file for elasticsearch , kibana and logstash

elasticsearch and kibana is running without any issues but logstash is not at all starting.

Can u try with a different installation of Java and Logstash

@Shiv_Gupta,

Which files are there in \logstash\config ?

Now you are using a different logstash config file that you said.

Now you are using "logstash_asc_log.config"

What the difference between "test.config" and "logstash_asc_log.config"?

Could you please try one more thing before you go to @Suman_Reddy1 suggestion?

Try to execute logstash with this command: logstash -f [CONFIG_FILE_PATH] -t --debug
ex: logstash -f ..\config\pipeline\test.config -t --debug

After this test, post here all result.

whatever suman suggested i already did that 3 days back but the same error.
@camarar - there is no difference in the configuration its just i changes the file name and as you above suggested i did try just now but unfortunately the same response. find attached screen.

@Shiv_Gupta,

Are you forget this question... Which files are there in \logstash\config ?
If possible, could you post a print this folder.

After this question, could you try one more test?

Try to execute logstash with this command: logstash --debug
Then, post here all result.

attached config folder files and the result after executing the logstash --debug option

@Shiv_Gupta,

could you post a print these folders?

  • \logstash-6.2.2\bin
  • \logstash-6.2.2\

@camarar - find attached.

bin

I am also having the same issue didn't find any solution yet.

@Shiv_Gupta,
Could you check if are there any log file in \logstash-6.2.2\logs ?

If exist one file like "logstash-plain.txt", It open this file and delete all content and save this file.

After, try to start logstash again and send for us the new content inside the log file "logstash-plain.txt".

for me its something strange, initially it was working nicely then after few days suddenly started throwing the mentioned error and no clue what went wrong.

Don't know its window latest version which is creating the problem may be.!

@camarar
There is no folder name "logs" in the path you have specified.

@camarar - I deleted all the content then ran again the same command but now i can see there is not content at all, its blank.

@darsan55 - I don't think so.

@camarar, @Shiv_Gupta

Hi,

can you check out below link.
https://logstash.jira.com/browse/LOGSTASH-1227

@darsan55 - as per the above how to changes the logstash UUID any idea?

Could you check if exist some folder like this pattern jruby-XXXX in this path "C:\Users[YOUR_USER]\AppData\Local\Temp" ?

If exist, delete all folders like this parttern and try start logstash again.

And tell us if start it correctly.