Alerting

Are alerts created in CORE SPLUNK stored in a .CONF file?

pfabrizi
Path Finder

I have users creating alerts in our DEV space and I was wondering if those are stored in .CONF stanza that I can pickup and use to migrate to production?

If they are where are they stored and is the stanza name?

Thanks!

Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi pfabrizi,
alerts are stored in savedsearches.conf files, there's one in each app.
Stanza's name is the Alert name.

Bye.
Giuseppe

View solution in original post

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

HI

Can you please try this?

Run the btool command to list the content of savesearches.conf on your Splunk search head and then filter only specific to search app. The btool merges the configuration from default and local directory and shows the saved searches configurations that are effective.

./splunk cmd btool savedsearches list --debug | grep "etc/apps/search" | sed -r 's/^(\S+\s+)//' >>/tmp/savedsearches.conf 

check your desired stanzas in /tmp/savedsearches.conf

Thanks

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi pfabrizi,
alerts are stored in savedsearches.conf files, there's one in each app.
Stanza's name is the Alert name.

Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

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

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