logstash: command not found in Ubuntu installed ELK stack

Dung Do Tien Mar 06 2022 609

I have installed LogStash success in my Ubuntu 20.04. and I go to folder path "/usr/share/logstash" and create logstashiis.conf file. You can see as below:

And I tried to run the command:

 logstash -f logstashiis.conf

but I got an error: logstash: command not found.

How can I fix it?

Have 1 answer(s) found.
  • W

    Wai Hein Ko Mar 06 2022

    I see the picture you provided, I saw the bin folder, you HAVE TO run that command inside this folder. You can try to run the command below:

     bin/logstash -f logstashiis.conf

    It really worked for me.

    Or you can type cd bin press Enter  and then run your command logstash -f logstashiis.conf

    I hope it helpful for you.

Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close