Query used:
{
"size": 0,
"query": {
"bool": {
"must": [
{
"match": {
"message": "<API_CALL_NAME>"
}
},
{
"range": {
"@timestamp": {
"gte": "now-1h",
"lte": "now"
}
}
}
]
}
},
{
"aggs": {
"api_calls": {
"terms": {
"field": "message",
"size": 10
}
}
}
}
}
but keep getting this error msg when i try to run in Kibana.
Error message : [bool] malformed query, expected [END_OBJECT] but found [FIELD_NAME]
Can someone pls help/clarify? Ta!