File input not sending to Elasticsearch

Hi I am just wondering if someone could look over these relevant portions of my Logstash config to see if there is an issue:

input {
  file {
    path => "/etc/elasticsearch/scripts/otherScripts/fortune.txt"
    codec => plain {
      format => "%{message}"
    }
    sincedb_path => "/dev/null"
    start_position => "beginning"
    type => "fortune"
  }
}

and

output {
        if [type]=="fortune" {
            elasticsearch {
            hosts => ["localhost:9200"]
            index => "linux-%{+yyyy.MM.dd}"
            }
        stdout { codec => rubydebug }
        }
}

Whenever I change the file and then check in the Kibana Discover linux-* pattern filtering for field type with value fortune nothing comes up. So can you help?

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