Splunk Cloud Platform

delete multiple alerts from splunk cloud

sarit_s6
Engager

Hello

I'm using Splunk cloud and i want to delete multiple alerts from list.

i was trying to do it with curl but got errors that i cannot figure out.

is there any other way ?

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

It would help to know what curl command you tried and what error it returned.

AIUI, alerts must be deleted individually.  There is no method in the UI for selecting multiple alerts for deletion.

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

sarit_s
Communicator

ok so i was able to figure it out
but now i have new issue that i don't know even where to start

i have a list of alerts that i want to move from one splunk app to another

is there a way to do it with script ? because doing it one by one will take me forever.

i have a file with - alert name, alert id, current app name, new app name

0 Karma

richgalloway
SplunkTrust
SplunkTrust

If the apps are defined in a custom app (a Best Practice) then edit savedsearches.conf to put the alerts in another app.  Then upload and install both apps.

Otherwise, you can use the REST API to do the job.  See https://docs.splunk.com/Documentation/Splunk/9.2.2/RESTREF/RESTsearch#saved.2Fsearches.2F.7Bname.7D

First, I'd try modifying the eai:acl.app setting, but I'm not sure that's supported.  If it works, you're golden and just need to loop through a list of searches to move.

If that doesn't work then you're stuck with copy-and-delete.  Read the specs for each search, create a copy of it in the destination app, then delete the original.

---
If this reply helps you, Karma would be appreciated.
0 Karma
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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

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 ...