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!