I have installed logstash but struggling to get it working.
my config is located here /etc/logstash/logstash-test.conf
And the content is:
input {
beats {
port => "5044"
}
}
output {
elasticsearch { hosts => ["localhost:9200"]
index => "logstash-%{+YYYY.MM.dd}"
}
stdout { codec => rubydebug }
}
This is how I tried running it but nothing happens when I check on kibana.
cd /usr/share/logstash
sudo bin/logstash -f /etc/logstash/logstash-test.conf
I go it working now, it turns out that I had the config file outside the config.d folder; so it wasn't being used when I restarted logstash. All good now.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.