Hi,
few days ago we have upgraded/patched cluster with Search Guard 7.x Bugfix Release July 2021. for ELK 7.9.3
I see there is some problem with accessing runtime data in type condition.
For example simple watch.
watch
[
{
“type”: “search”,
“name”: “mysearch”,
“target”: “mysearch”,
“request”: {
“indices”: [
“kubernetes-prod-logs”
],
“body”: {
“from”: 0,
“size”: 0,
“query”: {
“bool”: {
“filter”: {
“range”: {
“@timestamp”: {
“gte”: “now-5m”,
“lte”: “now”
}
}
},
“must”: [
{
“term”: {
“log.level”: “ERROR”
}
}
]
}
}
}
}
},
{
“type”: “condition”,
“name”: “mycondition”,
“source”: “data.mysearch.hits.total.value > 0”
}
]
Response
{
“watch”: {
“id”: “__inline_watch”,
“tenant”: “signals-prod”
},
“data”: {
“mysearch”: {
“_shards”: {
“total”: 198,
“failed”: 0,
“successful”: 198,
“skipped”: 189
},
“hits”: {
“hits”: ,
“total”: {
“value”: 692,
“relation”: “eq”
},
“max_score”: null
},
“took”: 42,
“timed_out”: false
}
},
“severity”: null,
“trigger”: {
“triggered_time”: null,
“scheduled_time”: null,
“previous_scheduled_time”: null,
“next_scheduled_time”: null
},
“execution_time”: “2021-08-19T06:57:30.413567858Z”
}
result
{
“tenant”: “signals-prod”,
“watch_id”: “test”,
“status”: {
“code”: “NO_ACTION”,
“detail”: “No action needed due to check mycondition”
},
“execution_start”: “2021-08-19T07:07:57.096Z”,
“execution_end”: “2021-08-19T07:07:59.566Z”,
“actions”: ,
“node”: “pias-essignals002.srv24246aca-kvm.signals”,
“_id”: “pk48XXsBW_l-8rou7kbO”,
“_index”: “.signals_log_2021.08.19”
}
Watches created before patch are working correct but new one don’t.