Skip to content

Using extracted fields in Opsgenie alert with Cardinality rule #551

Closed Locked Answered by jertel
rschirin asked this question in Q&A
Discussion options

You must be logged in to vote

I don't use cardinality rules myself, so I could be wrong, but I don't think you can do what you're attempting.

Cardinality is matching on the uniqueness of a field's values. Suppose you created an alert for when field "host" has less than two unique values over the past 5 minutes. Then in the 5 minute window, no events were logged. That should trigger the alert, correct? But then since there are no events, how is ElastAlert going to give your alerter an arbitrary field value, such as your observer[geo][region] field? It can't because there was no event in the first place.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rschirin
Comment options

Answer selected by jertel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants