asc-clo
(Andreas Scholdan)
January 8, 2025, 8:41am
1
Im trying to add a custom field to my event/alert
I added the template ${source.source_ip}
but it´s just empty, also I’m trying to add a link to the message where I need the index name that should be ${index} right? that is also not working.
Create alerts in Graylog by defining event conditions, triggers, and notifications. Configure email, Slack, or script alerts to respond to critical log events and manage active alerts with built-in monitoring and test features.
Arie
(Arie van den Heuvel)
January 8, 2025, 12:51pm
2
Is key should be Yes in the alert definition.
asc-clo
(Andreas Scholdan)
January 8, 2025, 1:13pm
3
I also tried that, the result the same:
Arie
(Arie van den Heuvel)
January 8, 2025, 1:16pm
4
Is the alert/event present within the timerange of the event definition in Filter & Aggregation?
asc-clo
(Andreas Scholdan)
January 8, 2025, 1:17pm
5
yes as you see here, there is plenty of alerts
Arie
(Arie van den Heuvel)
January 8, 2025, 1:48pm
6
Okay, looks all as it should be. Guess when the replay search button is hit, the messages appear in graylog search.
Is it that you do nog get the field in your email alert message?
asc-clo
(Andreas Scholdan)
January 8, 2025, 2:45pm
7
Yea the alerting part works fine see here:
Arie
(Arie van den Heuvel)
January 9, 2025, 7:53am
8
Could you try it with another fieldname without an underscore in it. Could be that it fails on that.
asc-clo
(Andreas Scholdan)
January 9, 2025, 8:12am
9
I found out if I change it to ${soruce}
I get this:
and now I’m able to grab ${source.source}
but how can I get more keys?
Arie
(Arie van den Heuvel)
January 9, 2025, 1:57pm
10
My guess is that it fails on the underscore if source.source works.
You could file a bug at their github space for this.