Notification use custom mail

Hi
In the notifications I would like to use a variable to change the email recipient.

I need to alert a user when an event occurs, so I retrieve the email address via a lookup table and save it in an Event Fields.
how can i use the email contained in the Event Fields in email recipient?

Thanks for your help

Hello,

You refering to this?

What version of Graylog are you using?

Could you explain in greater detail on this?

Are you refering to Notification Template?

Hello,
thanks for your reply.

You refering to this?
Yes, It’s true
01

What version of Graylog are you using?
The graylog version is 4.0.6.

Could you explain in greater detail on this?

I would like to send an email when the user logs into the vpn. Through a lookup table I retrieve the email of the specific user and I would like to use it as the recipient of the email.
I tried setting the email as a key field but I can’t specify it as the recipient of the notification.

Thanks
Matteo

Hello,

The only way I know how to do this is shown below in red box.
User recipient(s) (Optional) this normally shows all user that is in Graylog User and Teams section.
Email recipient(s) (Optional) This normally is for someone that is not configuraed in Graylog.

As for ${event.key} dont think you can use that for a Email recipients. Maybe someone else here has done that, but Im not familiar with it.

https://docs.graylog.org/en/4.0/pages/alerts.html#email-alert-notification

Hope that helps.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.