Can't run Logstash ? Error: Could not find or load main class org.logstash.Logstash

Error: Could not find or load main class org.logstash.Logstash

Command : bin/logstash -f /home/hduser/Desktop/data/logstash_cars.config

I am running it in Ubuntu using vmware

hduser@ubuntu:~$ java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

I am new to ELK stack

1 Like

That's not fun.

How did you acquire Logstash? Are you running it from source, or did you download a precompiled package?

Thanks for the reply Yaauie. Not sure what happened but I downloaded the logstash.zip again and it worked.

I'm having the same issue here and downloading the package again didn't solve it.

It's running on a mac, java version 1.8.0_171.

What can I try? There is any way I can see a more verbose error to debug this?

Thanks a lot

@yaauie regarding to your question on Divit's original post, in my case I downloaded it from the elastic site in .tar.gz format. Same one installed on another computer and it worked (also a mac), Same java version.

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