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. 

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
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...