Hi Everyone,
i got some watcher alerts to check if the separated indexes are getting new entries, if for example a SMTP server isn't sending anything within 1 hours, then we will get an alert to check whats going on there.
now i got in the last days some false errors, watcher was firing the alert but when i look into ES i can see that there are more than 100 logs within the time span of 1 hour.
here is a snippet of the watch:
"search_type": "query_then_fetch",
"indices": [],
"types": [],
"body": {
"size": 0,
"query": {
"bool": {
"must": [
{
"match": {
"_type": "postfix"
}
}
],
"filter": {
"range": {
"@timestamp": {
"gte": "now-1H",
"lt": "now"
}
}
}
}
}
}
}
}
},
"condition": {
"compare": {
"ctx.payload.hits.total": {
"lt": 1
did i something wrong with the time math? or im just blind, appreciate any help with it
thanks,
Dirk