@ not recognized as ....command

(Pieter) #1


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


(Magnus Bäck) #2

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

(Pieter) #3

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,

(Magnus Bäck) #4

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?

(Pieter) #5

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.

(Magnus Bäck) #6

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

(Pieter) #7

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

I downloaded and installed the following :


(Magnus Bäck) #8

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

(Pieter) #9

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: )

(Magnus Bäck) #10

What's the output of java -version?

(Pieter) #11

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)

(Magnus Bäck) #12

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

(Pieter) #13

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

I am going to uninstall v10 en install V9


(Christian Dahlqvist) #14

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

(Pieter) #15


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.

(system) #16

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