hive_alert_config
title and description fields
#339
-
Hi, We've had the following in our alert configuration prior to the latest upgrade. It was working as expected. Now, these fields no longer render properly and the docs are a little confusing regarding how the variables in the title and description should be formatted. Can someone clarify what the proper format is? I've tried several and it just spits out the text instead of the actual variable content and at this point it would be quicker to ask than to keep fighting it. The tags render fine, but the title and description do not. Thanks in advance. Praeco v1.8.8 and ElastAlert v2.1.2
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi - excuse my brevity as I'm on a phone right now with no access to a computer for a few hours. I will have to check about the The This matches how the Let me know whether this makes sense, happy to help more with getting it working. |
Beta Was this translation helpful? Give feedback.
Hi - excuse my brevity as I'm on a phone right now with no access to a computer for a few hours.
I will have to check about the
title
for certain when I'm behind a computer but you should be able to use the standard ElastAlert syntax,alert_subject
andalert_subject_args
as described at https://elastalert2.readthedocs.io/en/latest/ruletypes.html#alert-subject - you don't need to set a custom title in thehive_alert_config
.The
(see my reply in thread below)description
andtags
can be templated by using the field values from the rule or the match directly - i.e.match[agent][hostname]
should be templated asagent.hostname
andrule[title]
can be templated astitle
.This matches how the
ale…