Hi,
I got this query which is working fine but instead of only checking for the error
field I want to check for error
or warning
so the documents where either the error field or warning field exists, are returned.
GET /_search
{
"size": 1000,
"sort": [
{
"@timestamp": {
"order": "desc"
}
}
],
"query": {
"bool": {
"must": [
{
"range": {
"@timestamp" : {
"gte" : "now-3d"
}
}
},
{
"bool": {
"must": {
"exists": {
"field": "error"
}
}
}
}
]
}
}
}