I'm trying to create a simple query to return matching deploymentId from the documents in index logstash.
I'm able to search match query but when adding time range getting following exemption.
Error:
"type" : "parsing_exception",
"reason" : "[match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
I want only the last 15 min records matching the deploymentId.
GET /logstash-dev-2021.12.03/_search
{
"query": {
"match": {
"deploymentId" : "64a5d214-368c-4760"
},
"range": {
"time": {
"gte": "now-15m",
"lte": "now"
}
}
}
}