Splunk Search

Export saved (and scheduled) searches. Possible?

gfoligna0
Explorer

Hello everyone,

I'm working with Splunk and Nagios integrated (at Zappos), and we just changed our approach to monitor an application.
We have set up almost 70 scheduled searches but we need to disable, and then erase, all of them, but we don't need to lose those. So, I'm wondering if there's any chance that Scheduled Searches, and Saved Searches, could be exported from their .conf or wherever they are stored in order to add them back to Splunk in a near (or not that near) future.



I'll appreciate any input on this.

Thank you for you time. Cheers.



Gonzalo Foligna

Level 1 Operations Support - www.edrans.com

London: +44 20 3318 1571 | Buenos Aires: +54 11 5368 5839 - Ext. 8014

0 Karma
1 Solution

Ayn
Legend

All saved searches including their scheduling (if any), name, search parameters etc reside in savedsearches.conf. Create backups of these files and you will have effectively created backups of the saved searches themselves.

NOTE that, as you may know, like pretty much any Splunk configuration file savedsearches.conf can reside in multiple locations, so make sure you look in all the right places (for instance $SPLUNK_HOME/etc/apps/<yourApp>/local/savedsearches.conf would be likely if the saved searches reside inside a specific app).

View solution in original post

Ayn
Legend

All saved searches including their scheduling (if any), name, search parameters etc reside in savedsearches.conf. Create backups of these files and you will have effectively created backups of the saved searches themselves.

NOTE that, as you may know, like pretty much any Splunk configuration file savedsearches.conf can reside in multiple locations, so make sure you look in all the right places (for instance $SPLUNK_HOME/etc/apps/<yourApp>/local/savedsearches.conf would be likely if the saved searches reside inside a specific app).

gfoligna0
Explorer

It works perfectly!

Thank you!

0 Karma

gfoligna0
Explorer

Thanks! I'll check that and get back to you.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...