Logstash 5.5
Elastic Search input plugin
docinfo is true
But no @metadata field in output. What could be the problem
Here is the Logstash conf file:
input {
elasticsearch {
hosts => "localhost:9200"
index => "first"
query => { "query": { "match_all": {}}}
docinfo => true
docinfo_fields => ["_index", "_type", "_id"]
docinfo_target=> "@metadata"
}
}
output {
stdout {
codec => json
}
}