Alerting

Bulk alert description update

New Member

I have about 50 splunk alerts with various descriptions. I would like to update the description by adding the word Splunk to the beginning of the description. Is there a way to accomplish this without going into the UI for each alert and renaming the alert?

0 Karma

SplunkTrust
SplunkTrust

You can use your favorite text editor to modify the appropriate savedsearches.conf file then restart Splunk. The file to modify depends on the app in which your alerts are defined. It will be $SPLUNK_HOME/etc/apps/myapp/local/savedsearches.conf.

---
If this reply helps you, an upvote would be appreciated.

New Member

Thanks for your answer @richgalloway

Please forgive my ignorance, still new to the Splunk world.
I have been reading up about your suggestion. Just like to confirm my approach...

Am I correct to say I need to add the following to my savedsearch.conf file...

alert.name = "Splunk $name"

And after this update would I need to update any metadata files?

0 Karma

SplunkTrust
SplunkTrust

Your savedsearches.conf file should already contain alert.name attributes. You only need to modify those values to suit your needs. There is no need to update the metadata files.

---
If this reply helps you, an upvote would be appreciated.
0 Karma