Help with starting logstash with my config

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 have already created an index for logstash-*

Please help.

OK, so you have configured a beats input. Do you have a beat running that is sending data to it? Can you show the configuration for that?

also you missing one } on output section
output {
elsasticsearch { ....... }
stdout {.....}

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.

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