Alerting

How can I export all items from Settings>Searches, Reports, and Alerts?

metalgear138
Engager

So basically, I'm looking to effectively export/retrieve all content from Settings>Searches, Reports, and Alerts. Basically looking to build a reference document to list my alerts/reports with the underlying search. Is there a simple way to pull these from a location in the OS file structure instead of manually recording them from the UI? Tedious task, I know!

0 Karma

renjith_nair
Legend

Splunk stores knowledge objects in conf files. Saved search and alerts can be found in savedsearches.conf.

The location of the file depends on the permissions ie; if user hasn't shared the search then it will be under user's directory, if it's shared in app, it will be in etc/apps/appname default or local directory

or just run

splunk cmd btool --debug savedsearches list 

or use rest

| rest /servicesNS/-/-/saved/searches splunk_server=local
---
What goes around comes around. If it helps, hit it with Karma 🙂

yannK
Splunk Employee
Splunk Employee

remark, with a btool you will only find the public or shared saved searches
from the system $SPLUNK_HOME/etc/system/(local|default)/savedsearches.conf
and from the apps $SPLUNK_HOME/etc/apps/(appname)/(local|default)/savedsearches.conf

If you want to find the "private" saved searched, you have to go in each profile
from $SPLUNK_HOME/etc/users/(username)/(appname)/(local|default)/savedsearches.conf

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