Hi.
I have a problem with my input and pipeline. i'm new with pipelines and json filter.
I don't know how to get logstash filter my json files and send to elasticsearch.
This a exemple of my json file:
{"tenantID": 80454, "Size": 0.02, "FirstDate": "21/12/2019 08:29:08", "LastDate": "21/12/2019 22:45:32"}
And this is my actual pipeline for json files:
input {
file {
type => "json"
path => "/usr/share/logstash/inputlogs/*.json"
start_position => "beginning"
sincedb_path => "/usr/share/logstash/.sincedb"
}
}filter {
json { source => "message" }
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
index => "lab-benchmarking-json"
}
stdout {}
}
what it's wrong with my pipeline??
Thanks for advanced.