Hello!
I need to get id in previous document.
My query:
query.json
{
"size" : 1,
"sort" : [ {"timestamp": "desc"} ],
"query": {
"query_string": {
"query": "AS:%{[name]}"
}
},
"_id": "%{[@metadata][_id]}"
}
But i can't get id. What wrong?
Maybe there is another way get _id in previous doc in logstash?