# Can't run logstash on Windows

**URL:** <https://discuss.elastic.co/t/cant-run-logstash-on-windows/154333>\
**Category:** Logstash\
**Created:** [October 28, 2018, 9:47am UTC](https://discuss.elastic.co/t/cant-run-logstash-on-windows/154333 "2018-10-28T09:47:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joubeh](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@joubeh](https://discuss.elastic.co/u/joubeh)\
**Post date:** [October 28, 2018, 9:47am UTC](https://discuss.elastic.co/t/cant-run-logstash-on-windows/154333/1 "2018-10-28T09:47:11Z")

</div>

Hello,

what I'm facing that I've downloaded logstash.zip, I've unzipped it to C drive  
I've Elastic search and Kibana running on my machine but when I'm executing the following command on cmd

`C:\logstash-6.4.2\bin>logstash -e 'input { stdin { } } output { stdout {} }'`

I got the following response:

`warning: ignoring JAVA_OPTS= -Xms1g -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.compile.invokedynamic=true -Djruby.jit.threshold=0 -XX:+HeapDumpOnOutOfMemoryError -Djava.security.egd=file:/dev/urandom ; pass JVM parameters via LS_JAVA_OPTS`

and nothing happen.

appreciate your kind input.

---

<div class="post-metadata">

**Author:** ![rahulnama](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Post date:** [October 28, 2018, 12:21pm UTC](https://discuss.elastic.co/t/cant-run-logstash-on-windows/154333/2 "2018-10-28T12:21:21Z")

</div>

try this

`bin/logstash -f [[your config file]].conf`

for testing the config file, you can run

```auto
bin/logstash --config.test_and_exit -f <the config file>

```

---

<div class="post-metadata">

**Author:** ![joubeh](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@joubeh](https://discuss.elastic.co/u/joubeh)\
**Post date:** [October 28, 2018, 12:30pm UTC](https://discuss.elastic.co/t/cant-run-logstash-on-windows/154333/3 "2018-10-28T12:30:43Z")

</div>

please note that I've the same result

> C:\Users\Administrator\Desktop\Logstash\logstash-6.3.0\bin\>logstash -f logstash.conf

`warning: ignoring JAVA_OPTS= -Xms1g -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.compile.invokedynamic=true -Djruby.jit.threshold=0 -XX:+HeapDumpOnOutOfMemoryError -Djava.security.egd=file:/dev/urandom ; pass JVM parameters via LS_JAVA_OPTS`

---

<div class="post-metadata">

**Author:** ![balumurari1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balumurari1/32/39203_2.png) [@balumurari1](https://discuss.elastic.co/u/balumurari1)\
**Post date:** [October 29, 2018, 11:53am UTC](https://discuss.elastic.co/t/cant-run-logstash-on-windows/154333/4 "2018-10-29T11:53:35Z")

</div>

Hello,  
==\> 1. Make sure you have java version 1.8+.  
2.check in command prompt java -version  
3. Make sure logstash.conf is a CONF file  
4.keep in logstash.conf file  
Ex;  
input{stdin{}}output{stdout{}}  
5. In command prompt,  
cd logstash-6.3.0  
bin\logstash -f logstash.conf

---

<div class="post-metadata">

**Author:** ![joubeh](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@joubeh](https://discuss.elastic.co/u/joubeh)\
**Post date:** [October 29, 2018, 12:18pm UTC](https://discuss.elastic.co/t/cant-run-logstash-on-windows/154333/5 "2018-10-29T12:18:54Z")

</div>

Hello,

Java version is `1.8.0_181`

and the extension is `.conf`

when I execute this command for the first time

> C:\logstash-6.3.0\>bin\logstash -f logstash.conf

I got

`\IBM\WebSphere was unexpected at this time.`

when I execute the same again I got:

`warning: ignoring JAVA_OPTS= -Xms1g -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.compile.invokedynamic=true -Djruby.jit.threshold=0 -XX:+HeapDumpOnOutOfMemoryError -Djava.security.egd=file:/dev/urandom ; pass JVM parameters via LS_JAVA_OPTS`

do you've any idea what should I do?

---

<div class="post-metadata">

**Author:** ![joubeh](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@joubeh](https://discuss.elastic.co/u/joubeh)\
**Post date:** [October 30, 2018, 7:21am UTC](https://discuss.elastic.co/t/cant-run-logstash-on-windows/154333/6 "2018-10-30T07:21:28Z")

</div>

I've updated `setup.bat` and enabled the echo

I've this issue that is terminating the process

`C:\logstash-6.3.0\bin>if not exist "C:\logstash-6.3.0\vendor\jruby\bin\jruby" ( echo "C:\logstash-6.3.0\vendor\jruby\bin\jruby" echo "could not find jruby in C:\logstash-6.3.0\vendor\jruby" 1>&2 rem exit /b 1 )`

while I've took the path`C:\logstash-6.3.0\vendor\jruby\bin\jruby`  
it exist and accessable

any ideas !

---

<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:** [November 27, 2018, 7:21am UTC](https://discuss.elastic.co/t/cant-run-logstash-on-windows/154333/7 "2018-11-27T07:21:29Z")

</div>

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