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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...