Search code examples
elasticsearchlogstashkibanaelastic-stackelasticsearch-5

Elastic Stack - Unable to run logstash


I am new to ELK and I am unable to run Logstash. I am trying with :

cd /usr/share/logstash/bin
logstash -e 'input { stdin { } } output { stdout {} }'

Its coming "logstash command not found" .

The question is solved by ading ./ before logstash. Thanks for @val. But now I am facing another issue. after running the above command I am not getting any output. Please refer to the screenshot. The output should be 2013-11-21T01:22:14.405+0000 0.0.0.0 hello But I am not getting anything. Can anyone please help enter image description here


Solution

  • You need to run ./logstash as logstash is most probably not on the PATH:

       cd /usr/share/logstash/bin
       ./logstash -e 'input { stdin { } } output { stdout {} }'
       ^^
       ||
    add this