# Error occurred while running the logstash installation command in windows

**URL:** <https://discuss.elastic.co/t/error-occurred-while-running-the-logstash-installation-command-in-windows/120230>\
**Category:** Logstash\
**Created:** [February 16, 2018, 6:01pm UTC](https://discuss.elastic.co/t/error-occurred-while-running-the-logstash-installation-command-in-windows/120230 "2018-02-16T18:01:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy\_19](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@sandy\_19](https://discuss.elastic.co/u/sandy_19)\
**Post date:** [February 16, 2018, 6:01pm UTC](https://discuss.elastic.co/t/error-occurred-while-running-the-logstash-installation-command-in-windows/120230/1 "2018-02-16T18:01:14Z")

</div>

Hi,

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.

Thanks

---

<div class="post-metadata">

**Author:** ![Camiel\_Luijkx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/camiel_luijkx/32/28504_2.png) [@Camiel\_Luijkx](https://discuss.elastic.co/u/Camiel_Luijkx)\
**Post date:** [March 6, 2018, 9:02pm UTC](https://discuss.elastic.co/t/error-occurred-while-running-the-logstash-installation-command-in-windows/120230/2 "2018-03-06T21:02:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![butool](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@butool](https://discuss.elastic.co/u/butool)\
**Post date:** [March 24, 2018, 5:24am UTC](https://discuss.elastic.co/t/error-occurred-while-running-the-logstash-installation-command-in-windows/120230/3 "2018-03-24T05:24:23Z")

</div>

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 {} }"

---

<div class="post-metadata">

**Author:** ![SimoTheBlue](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@SimoTheBlue](https://discuss.elastic.co/u/SimoTheBlue)\
**Post date:** [April 6, 2018, 10:28am UTC](https://discuss.elastic.co/t/error-occurred-while-running-the-logstash-installation-command-in-windows/120230/4 "2018-04-06T10:28:14Z")

</div>

Thank you, that works (Y)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 4, 2018, 10:28am UTC](https://discuss.elastic.co/t/error-occurred-while-running-the-logstash-installation-command-in-windows/120230/5 "2018-05-04T10:28:27Z")

</div>

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