Splunk Enterprise

How to "Export" all configured "Alerts" in a particular "App" with all configured settings including the actions etc

iggydolby2
Loves-to-Learn Lots

I will like to "Export" all configured "Alerts" in a particular "App" with all configured settings including the actions when the alert is triggered.

I have tried some "rest" and "searches" listed on the "Community" without success.  

 

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use btool.

splunk btool savedsearches list -app=App > AppAlerts.txt

 This will also give you the non-alert saved searches, but you can use an editor to remove them.

If you use Splunk Cloud then submit a support ticket asking for the app's savedsearches.conf files.

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

iggydolby2
Loves-to-Learn Lots

I cannot login directly to the Splunk server, only to the application.

Is the "btool" command line only available from the Enterprise server command line?

Is there a search or API call that I can make to get the information?

 

 

 

 

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Yes, btool is a CLI command.  If you don't have access then perhaps you know someone who does?

You can use the REST API to get most of the information you seek.  Start with this query and then modify it to suit your needs

| rest /servicesNS/-/-/saved/searches splunk_server=local | search alert_type!="always"
---
If this reply helps you, Karma would be appreciated.

iggydolby2
Loves-to-Learn Lots

Sorry, I was out of the office. I will try this today and let you know.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...