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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...