I am unable to launch Logstash. Elasticsearch and Kibana are both running
When I execute the following command:
bin\logstash.bat -f .\config\logstash-sample.conf
I get this:
> Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
> Unrecognized option: -
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
I have the following Java version when I run Java -version
> java version "11.0.6" 2020-01-14 LTS
> Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
> Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)
I am using logstash-7.5.2 and run it on Windows 10.
I am very new to elk and tried to search all the forums but have not been able to locate an answer...
Thank you in advance
It is possible that the - in -f is an en-dash (or another variant of dash). It has to be a hyphen. Try typing the entire command in, do not copy and paste it from a web site.
Thank you for the feedback. I have tried to type it out and it still produces the same result.
I have tried to create my own config file, still the same result.
And I have also tried another Windows computer, to no alas.
bin\logstash.bat -f .\config\logstash-sample.conf
Even when I just type
bin\logstash.bat .\config\logstash-sample.conf
It still produces the same result. I am really not sure what could be the source of this problem... Any other ideas?
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Unrecognized option: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.