Alerting

Automatic alert creation

ngutha
Engager

Is there a way we can automatically create alerts on Splunk. I am able to manually create alerts, but wondering how to create alerts using automation.

Labels (1)
0 Karma

ngutha
Engager

@richgalloway For example: If I have say 200 alerts that were manually created on a North American data center.  Say I want to spin up an Australian Data center but do not want to create the same 200 alerts again. Is there a way I can automate alert creation?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The easiest method is to put your custom alerts in their own app.  Then you can copy the entire app to the new DC.

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

richgalloway
SplunkTrust
SplunkTrust

What is the use case for creating alerts automatically?

You can create an alert programmatically using the REST API.  An alert is just a scheduled search with an action.  See https://docs.splunk.com/Documentation/Splunk/8.0.6/RESTREF/RESTsearch#saved.2Fsearches

---
If this reply helps you, Karma would be appreciated.
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...