Alerting

Send Email Alert by result query

vumanhtai
Path Finder

Hi ALL!
sourcetye=error | stats count by email | sendmail to=....

I want the receiver in "sendmail" is the result of query "stats count by email"
For example:
If we have 3 emails from the "stats count by email"
Then the query "sendmail" will send email to the 3 above emails.

Thanks in advance!

0 Karma

mdsnmss
SplunkTrust
SplunkTrust

Hi vumanhtai,

You may want to take a look at this app which allows for more dynamic alerting based on results: https://splunkbase.splunk.com/app/1794/#/details.

0 Karma

p_gurav
Champion

Try this:

sourcetype=error | stats count by email | sendmail to=$result.email$

OR

 sourcetype=error | stats count by email | sendmail to=$email$
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...