@ not recognized as ....command


After Installing Logstash i tried to run logstash.bat.
It returns with a error telling me:

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

I have not enough knowledge to find this out, can you help me in this one please.

I'm running Elastic search, Kibana and Logstash 6.2.4


Is there a garbage character at the very beginning of logstash.bat? You may have to use a hex editor to see it.

thx for answering on my question.
To be honest..I wouldnt know ,

I attached a JPG with the logstash.bat text in it.
If you can tell something about it, than it would be most appreciated.

thx in advance,

Garbage characters are typically not printable so you really need to inspect the file with a hex editor or some other tool that displays exactly what the file contains.

Did you edit logstash.bat yourself or is the file straight from the zip file you downloaded?

No I did not edit it myself, it came with the .zip file.
Also i unpacked a new Logstash map and copied the .bat file to the existing location.
Same results.

And what's the URL to the zipfile you downloaded?

Sorry for the late response, Just went for a short holliday :slight_smile:

I downloaded and installed the following :


The original file looks fine to me so I don't know what's going on.

Just to be sure that everything was installed by the book...

I uninstalled logstash and after a reboot unzipped and installed it again.

By now it comes with another message:

Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Is this perhaps a known issue ( simple to resolve so to speak :slight_smile: )

What's the output of java -version?

C:\Elastic_demo\logstash-6.2.4\bin>java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

Java 10 isn't supported: https://www.elastic.co/support/matrix#matrix_jvm

oempfff... thx didn't checked it indeed..

I am going to uninstall v10 en install V9


As per the support matrix Logstash still requires Java8, so Java9 is unlikely to work as well.


Thanx for the correction :), I looked only to the top of the matrix instead of the part for Logstash.
As far as I can see even I succeded the installation by now...

I can continue to find out what i can do witrh Elastic search.

thank you for the support.

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