Duplicates logs are available on running the query for same time (now-1m)
We are running the query for last now-1m based upon our use case however we seeing duplicates getting generated in Output. Please help with the problem.
Refer here the query
input {
elasticsearch{
hosts => ["https://elasticdomain"]
index => "test*"
query => '{ "sort" : [ {"@timestamp" : {"order" : "asc"}} ], "query": { "range": { "@timestamp": {"gte": "now-1m"} }}}'
size => 1000
docinfo => true
schedule => "*/1 * * * *"
user => "admin"
password => "admin"
}
}