Logstash - Elastic Search Input plugin

Hi Team

I am creating a query using elastic search input plugin. when I ran it on developer tool on kibana before running on LS I am getting the following error:

    POST /sbl_nmon2019.12.02/_search?size=0
{"query":
{"range":{"@timestamp":{"gte": "now-30m"}},
"agg":{"max_cpu" : {"field":"cpu_consumed"}},
"match":{"Server" : "siebeldbnode01"} }
}

error :
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "[range] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
"line": 3,
"col": 1
}
],
"type": "parsing_exception",
"reason": "[range] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
"line": 3,
"col": 1
},
"status": 400
}

Please support what I am doing incorrectly.

SY

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.