-
What I want to write is an alert that fires when the number/cardinality unique ids( algo_heartbeats_stopped.yaml
better_cardinality.py
This code however seems to trigger in situations were it should not. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We would have to analyze the specific matching records in one of those example timeframes where it triggered the alert but your enhancement counted sufficient numbers of unique algo_keys. It might help if you dump the contents of cardinality_cache in your enhancement, and compare those values to the records found in ES for that timeframe that triggered the rule. Keep in mind that if your |
Beta Was this translation helpful? Give feedback.
We would have to analyze the specific matching records in one of those example timeframes where it triggered the alert but your enhancement counted sufficient numbers of unique algo_keys. It might help if you dump the contents of cardinality_cache in your enhancement, and compare those values to the records found in ES for that timeframe that triggered the rule. Keep in mind that if your
run_every
setting is shorter than yourtimeframe
then the loop that triggers the alert will also be looking at cardinatlity_cache records from previous loops.