Unable to get log files from directory in logstash

I am trying to get logstash to read json logs from a directory.

Here is my config file:

input {
  file {
    path => "/home/ast/nifi-files-cp/*.json"
  }
  tcp {
    port => 10000
  }
}
filter{
  json{
    source => "message"
  }
}
output {
  elasticsearch {
    hosts => ["localhost:9200"]
    index => "json"
   }
}

Logstash does not give any error messages, it just does not pick the files up out of the directory.

Any help is appreciated. Thanks!

If you have processed the data previously it is probably a sincedb problem, so you may want to reset that.

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