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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...