Error occurred while running the logstash installation command in windows


I am new to ELK stack. I downloaded logstash, elasticsearch and kibana 6.2.1 versions. I am successful in installing elasticsearch and kibana in windows 10. But while installing logstash i am getting error.

I executed this command in windows command prompt to test logstash installation. (Taken from logstash doc).

C:\ELK STACK\logstash-6.2.1\logstash-6.2.1\bin>logstash -e 'input { stdin { } } output { stdout {} }'

I got below error.

See: 'bin/logstash --help'
[ERROR] 2018-02-16 23:02:56.281 [main] Logstash - java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit

In logstash logs also i got same message.
Logstash logs message:

[2018-02-14T22:35:54,351][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit

I am using java8. Could any one please help me to resolve this issue.


I have the exact same problem using Logstash 6.2.2. running jre1.8.0_161.

Trying to run logstash from \bin using "logstash.bat agent -f logstash.conf" and valid config file returns:

[ERROR] yyyy-MM-dd HH:mm:ss.ttt [main] Logstash - java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit

ElasticSearch 6.1.3 and Kibana 6.1.3 are running fine.

Do I need to use an older version of JVM or LogStash?

Trying using double quotes instead of single quotes:

C:\ELK STACK\logstash-6.2.1\logstash-6.2.1\bin>logstash -e "input { stdin { } } output { stdout {} }"


Thank you, that works (Y)

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