Error when running logstash.bat -f ..\logstash.conf


(Phil) #1

Hi,

This might be a simple error but I cant find the solution for it.

When I run - logstash.bat -f ..\logstash.conf in command prompt, I get the following.

'-Xms1g' is not recognized as an internal or external command,
operable program or batch file.

Not sure where I can fix this.

I have installed jdk1.8.0_141.

I am using 6.2.2 for ELK.

Any advice.

Thanks.

Phil


(Ry Biesemeyer) #2

That looks like a memory usage directive for Java, which Logstash builds from your environment variables.

at the command line, if you type SET and hit enter, it should output your environment variables; woulds you mind sharing the values you have for the following (if set)?

  • LS_JVM_OPTIONS_CONFIG
  • LS_JAVA_OPTS

(Phil) #3

Thank you for the reply.

When I click on Set in the command line, there is no
LS_JVM_OPTIONS_CONFIG
LS_JAVA_OPTS

Should I set it to values?

Thanks.

Phil


(Phil) #4

Finally found an error in the modified setup.bat. Fixed it and works well now.
Issue is that LS_JAVA is not set properly.

Once again thanks for helping me out.

Phil


(system) #5

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