GET filebeat-*/log/_search
{
"query": {
"bool": {
"must": [
{
"term": {
"terminationCause": {
"value": "SUCCESS"
}
}
},{
"terms": {
"clientId": [
"X",
"Y",
"Z"
]
}
}
]
}
}
}
This query will retrieve documents with terminationCause = "SUCCESS" and clientsId equals to X, Y or Z
Then A and B will automatically be avoided.