Hi there,
I want get result from Elasticsearch of specific fields (and their values) which match 2 criteria - date and string match. But I something doing wrong, because I receiving this error:
[match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]
My query:
GET monitoring/_search
{
"_source": [
"AmountCurr",
"AmountRaw"
],
"query": {
"bool": {
"must": [
{
"match": {
"LogType": "OK"
},
"range": {
"@timestamp": {
"gt": "now-1d/d",
"lt": "now/d"
}
}
}
]
}
}
}
What I did wrong?
PS: I took inspiration from elasticsearch - How to have Range and Match query in one elastic search query using python? - Stack Overflow
Thank you.