Alerting

Change alert target email based on data

smileyge
Path Finder

I would like to set up an alert that sends an email to an email address contained in the data that the alert triggers on. For example, let's say I have a data set that contains emails, and I want to count those and send those email addresses their counts every week or on some other timing. Can I somehow pipe the email field from the data that generated the alert into the email that is sent, instead of specifying the alert emails should always go to a static address I specify at the time I configure the alert?

Tags (2)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Splunk's alert emails can't do that out of the box. However, you can modify a copy of the sendemail command to roll your own email script that reads receivers from the data rather than from the alert config.

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Splunk's alert emails can't do that out of the box. However, you can modify a copy of the sendemail command to roll your own email script that reads receivers from the data rather than from the alert config.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Update: Splunk 6.1 comes with this very feature 🙂

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...