I am trying to build a query that a certain term (terminationCause) will be success. And that a different term (clientId) will equal either (OR) X Y or Z (but not A or B)
What I built is (ofcourse this doesn't work):
GET filebeat-*/log/_search
{
"query": {
"bool":{
"must": [
"should" : [
{"match" : {"clientId": "tomer"}}
]
],
"must": [
{"term" : {"terminationCause": "SUCCESS"}}
]
}
}
}
I will be happy for any help on the subject.