Skip to content

Enrich description field with dynamic alert values #1458

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

You must be logged in to vote

The rule description field is a static field so no, it doesn't support the syntax you pasted above. What are you trying to do with the description? If you're trying to insert dynamic meta data into the elastalert_* indices upon an alert triggering, then you might be able to write a similar enhancement to the one you linked. But keep in mind you'd be modifying the actual description field on the rule object, so all future alerts would have that modified rule description. In otherwords, you couldn't do something like this in your enhancement:

self.rule["description"] = self.rule["description"].replace("{{0}}", match["some_field"])

Instead your enhancement would need to have the original de…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@rschirin
Comment options

@jertel
Comment options

@rschirin
Comment options

@jertel
Comment options

@rschirin
Comment options

Answer selected by rschirin
Comment options

You must be logged in to vote
0 replies
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