Just install local host Logstash 5.4.1
I ceated the simple config file at the Logstash folder and run
c:\logstash-5.4.1\bin>logstash -f logstash-simple.conf
and got this:
Using JAVA_HOME=C:\ProgramData\Oracle\Java\javapath\java.exe retrieved from PATH
Cannot locate Java installation, specified by JAVA_HOME:
C:\ProgramData\Oracle\Java\javapath\java.exe
It is because JAVA_HOME environment is referring to invalid/unknown Java installation. Generally it is installed in "C:\Program Files\Java".
I recommend that you check this directory for any valid JDK/JRE (if there is none, then you need to install one) and lastly update JAVA_HOME with this valid installation path.
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.