Logstash fail to start - Error: Mainclass logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar

Hi Everybody!

I Downloaded Logstash and tried to run a test "logststash.conf" to gather data from my sql server.

Oh, I am using Windows 10.

When i try to run logstash -f logststash.conf i get the following error:

c:\Users\105026676\Downloads\Elastic Stack\logstash-6.4.1\bin
λ logstash -f logstash.conf
Fehler: Hauptklasse Stack\logstash-6.4.1\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar;c:\Users\105026676\Downloads\Elastic konnte nicht gefunden oder geladen werden

Sorry for the german. It says something like:

Error: Mainclass Stack\logstash-6.4.1\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar;c:\Users\105026676\Downloads\Elastic could not be found or loaded

Seems like a path problem, but i can't figure out what i need to set and where.

best regards
Konrad

1 Like

I have the same issue. Could someone please help? Thanks!

Had the same issue and after reading multiple post, moving the logstash directory to a place that had no spaces (in my case C:\Program Files\Elastic\Logstash\6.4.2\bin) to c:\Elastic\Logstash\6.4.2\bin finally was able to start/run the logstash.bat

I actually moved the whole directory (and all contents) to avoid the spaces

1 Like

Hey Dude,

Just rename the folder name from "Elastic Stack" to "Elastic_Stack".

Thanks
Simon Dhilip

1 Like

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