# @ not recognized as ....command

**URL:** https://discuss.elastic.co/t/not-recognized-as-command/131112
**Category:** Logstash
**Created:** [May 9, 2018, 6:55am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112 "2018-05-09T06:55:00Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Pba1211](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Pba1211](https://discuss.elastic.co/u/Pba1211)
#### Post date: [May 9, 2018, 6:55am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/1 "2018-05-09T06:55:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 9, 2018, 8:15am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/2 "2018-05-09T08:15:51Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Pba1211](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Pba1211](https://discuss.elastic.co/u/Pba1211)
#### Post date: [May 9, 2018, 9:28am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/3 "2018-05-09T09:28:07Z")

</div>

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

 ![logstash-Screenprint](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c15971dfeb48356e9b2b04e9837330cd08510c7e.JPG)

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 9, 2018, 10:58am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/4 "2018-05-09T10:58:23Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Pba1211](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Pba1211](https://discuss.elastic.co/u/Pba1211)
#### Post date: [May 9, 2018, 11:28am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/5 "2018-05-09T11:28:50Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 9, 2018, 1:17pm UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/6 "2018-05-09T13:17:57Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Pba1211](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Pba1211](https://discuss.elastic.co/u/Pba1211)
#### Post date: [May 22, 2018, 8:53am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/7 "2018-05-22T08:53:34Z")

</div>

Sorry for the late response, Just went for a short holliday 🙂

I downloaded and installed the following :

Download:  
[https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.msi](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/kibana/kibana-6.2.4-windows-x86_64.zip)  
[https://artifacts.elastic.co/downloads/logstash/logstash-6.2.4.zip](https://artifacts.elastic.co/downloads/logstash/logstash-6.2.4.zip)  
[https://github.com/codingchili/parser-excel-elasticsearch/archive/master.zip](https://github.com/codingchili/parser-excel-elasticsearch/archive/master.zip)

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 22, 2018, 10:14am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/8 "2018-05-22T10:14:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Pba1211](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Pba1211](https://discuss.elastic.co/u/Pba1211)
#### Post date: [May 22, 2018, 10:19am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/9 "2018-05-22T10:19:28Z")

</div>

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

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 22, 2018, 10:20am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/10 "2018-05-22T10:20:53Z")

</div>

What's the output of `java -version`?

---

<div class="post-metadata">

### Author: ![Pba1211](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Pba1211](https://discuss.elastic.co/u/Pba1211)
#### Post date: [May 22, 2018, 10:59am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/11 "2018-05-22T10:59:47Z")

</div>

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)

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 22, 2018, 11:57am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/12 "2018-05-22T11:57:12Z")

</div>

Java 10 isn't supported: [https://www.elastic.co/support/matrix#matrix\_jvm](https://www.elastic.co/support/matrix#matrix_jvm)

---

<div class="post-metadata">

### Author: ![Pba1211](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Pba1211](https://discuss.elastic.co/u/Pba1211)
#### Post date: [May 22, 2018, 12:11pm UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/13 "2018-05-22T12:11:02Z")

</div>

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

I am going to uninstall v10 en install V9

thanx

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [May 22, 2018, 12:18pm UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/14 "2018-05-22T12:18:03Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Pba1211](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Pba1211](https://discuss.elastic.co/u/Pba1211)
#### Post date: [May 23, 2018, 6:23am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/15 "2018-05-23T06:23:24Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 20, 2018, 6:23am UTC](https://discuss.elastic.co/t/not-recognized-as-command/131112/16 "2018-06-20T06:23:40Z")

</div>

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