Alerting

Bulk update action email trigger

rafamss
Contributor

Is there some way (bulk is better) to update the email field in the alert action trigger through the search/rest?

Labels (2)

inventsekar
SplunkTrust
SplunkTrust

Hi @rafamss .. it should be possible

1. the alerts are stored as regular (xml i think) files. find out the list of all alerts

2. the alert got field for email list, find out that field. 

3. thru vi editor / sed / awk, you can do search and replace all the required email ids. 

 

Check this first in dev/test before trying it on prod. The real challenge is that how to verify only the required email id's are replaced.. you should be able to figure it out during the step 3 actually. 

hope this gave some ideas to you, thanks. 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

shusseina
Engager

Hi @inventsekar 

When do I find the XML for an alert?

Thanks

Steve

0 Karma

rafamss
Contributor

Hi @inventsekar,

Thank you for the response. I'll try it later in a lab and go back here to tell you if it works.

Thanks,

RS

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...