Alerting

Sending email to Multiple users

Contributor

Hi

I need to search data in splunk for more then 15 different users and have to send each user's results(table or chart) to other set of users and it needs to be run every day. is it possible to implement in splunk search ? if so can please provide me idea and sample example. Thanks in advance

Thanks

Sathish R

0 Karma

Splunk Employee
Splunk Employee

You must, in this case, use a script to send your mail. Set the alert action to run a script and have a script parse the results to determine what data to send to which email addresses.

SplunkTrust
SplunkTrust

rsathish47, examples are provided here http://docs.splunk.com/Documentation/Splunk/6.0/alert/ConfiguringScriptedAlerts just read the page and create your script that will meet your system OS flavor in regards of 'how to send an email from this server'.

0 Karma

Contributor

if you have any smple example Pls post it Thanks in advance

0 Karma

Contributor

Thanks for the reply.. I will check this..

0 Karma

SplunkTrust
SplunkTrust

adding just a bit more details to this perfect answer; take a look at this http://answers.splunk.com/answers/112040/splunk-alerting-via-email-search-result-defines-who-gets-em...

Contributor

yes, search will determine the recipient list

0 Karma

Super Champion

So, you want to have the search determine who gets the email?

0 Karma