time based Enhancements #1477
-
So I work with integrations, they have a connection status field. Elastic alert checks the statis every 15 mins. I use elastalert to check if the integration has failed or not by checking the integration status field for an "F". The problem is that, alot of times the integration fails for 2 cycles(30 mins) due to connection issues so I would like elastalert to alert me if the integration is on F status for three cycles. How would I make an enhancement as such, this is more of a question on the programming logic....any helpwould be appreciated....thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Did you consider using a frequency rule, that only alerts when the number of status=F records is > 2 in a 30 minute window? |
Beta Was this translation helpful? Give feedback.
I dount think the count is currently saved in memory, so it's likely unavailable to the enhancement. But if you are not using
use_count_query: true
then thematches
list var inside of the enhancement should have the returned records from the query.