# Logstash gives an warning when running through command window

**URL:** <https://discuss.elastic.co/t/logstash-gives-an-warning-when-running-through-command-window/119606>\
**Category:** Logstash\
**Created:** [February 13, 2018, 9:42am UTC](https://discuss.elastic.co/t/logstash-gives-an-warning-when-running-through-command-window/119606 "2018-02-13T09:42:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SandeepG](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SandeepG](https://discuss.elastic.co/u/SandeepG)\
**Post date:** [February 13, 2018, 9:42am UTC](https://discuss.elastic.co/t/logstash-gives-an-warning-when-running-through-command-window/119606/1 "2018-02-13T09:42:48Z")

</div>

Hi,

I just downloaded logstash and trying to install in windows 7 through command prompt. While testing logstash with command i am getting this warning.

C:\Elastic Search\logstash-6.2.0\bin\>logstash -e 'input { stdin { } } output { s  
tdout {} }'  
warning: ignoring JAVA\_OPTS= -Xms1g -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSwee  
pGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Dj  
ava.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

Any one please help me why i am getting this warning.

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 14, 2018, 12:51am UTC](https://discuss.elastic.co/t/logstash-gives-an-warning-when-running-through-command-window/119606/2 "2018-02-14T00:51:03Z")

</div>

It's safe to ignore that, it's just saying `JAVA_OPTS` is not a valid config parameter and to use `LS_JAVA_OPTS` instead.

---

<div class="post-metadata">

**Author:** ![SandeepG](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SandeepG](https://discuss.elastic.co/u/SandeepG)\
**Post date:** [February 14, 2018, 5:29am UTC](https://discuss.elastic.co/t/logstash-gives-an-warning-when-running-through-command-window/119606/3 "2018-02-14T05:29:39Z")

</div>

Thanks warkolm for your reply. By using this command C:\Elastic Search\logstash-6.2.0\bin\>logstash -e 'input { stdin { } } output { stdout {} }' logstash configured from command window and it should be started. But i got warning message only logstash didn't started.

Can i know what is the reason why logstash is not started and what step i have to do now?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 14, 2018, 6:34am UTC](https://discuss.elastic.co/t/logstash-gives-an-warning-when-running-through-command-window/119606/4 "2018-02-14T06:34:54Z")

</div>

Please post the entire command and output.

---

<div class="post-metadata">

**Author:** ![SandeepG](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SandeepG](https://discuss.elastic.co/u/SandeepG)\
**Post date:** [February 14, 2018, 7:31am UTC](https://discuss.elastic.co/t/logstash-gives-an-warning-when-running-through-command-window/119606/5 "2018-02-14T07:31:47Z")

</div>

I ran below command with admin access to check logstash setup is working or not

C:\Elastic Search\logstash-6.2.0\bin\>logstash -e 'input { stdin { } } output { s  
tdout {} }'

It showed me the below warning and logstash didn't started.

warning: ignoring JAVA\_OPTS= -Xms1g -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSwee  
pGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Dj  
ava.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

JAVA\_HOME environment variable is also created with jdk 8 version.  
logstash version is 6.2.0

Can know reason for not staring logstash.

---

<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:** [March 14, 2018, 7:31am UTC](https://discuss.elastic.co/t/logstash-gives-an-warning-when-running-through-command-window/119606/6 "2018-03-14T07:31:51Z")

</div>

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