Logstash gives an warning when running through command window

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

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.

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?

Please post the entire command and output.

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.

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