@ not recognized as ....command

Hello,

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

C:\Elastic_demo\Logstash\bin>logstash.bat
'■@' 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

thx
Pieter

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

Hello,
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,
Pieter

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 :

Download:
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.msi
https://artifacts.elastic.co/downloads/kibana/kibana-6.2.4-windows-x86_64.zip
https://artifacts.elastic.co/downloads/logstash/logstash-6.2.4.zip
https://github.com/codingchili/parser-excel-elasticsearch/archive/master.zip

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:

C:\Elastic_demo\logstash-6.2.4\bin>logstash.bat
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

thanx

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

Christian,

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.