Admin Manual

 


How Splunk Works

Set up saved searches via savedsearches.conf

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Set up saved searches via savedsearches.conf

Configure saved searches with savedsearches.conf. Use the $SPLUNK_HOME/etc/system/README/savedsearches.conf.example as an example, or create your own savedsearches.conf. Make any changes in $SPLUNK_HOME/etc/system/local/, or your own custom application directory in $SPLUNK_HOME/etc/apps/. For more information on configuration files in general, see how configuration files work.


To turn your saved search into an alert, see set up alerts via savedsearches.conf.


Configuration

Edit $SPLUNK_HOME/etc/system/local/savedsearches.conf to create a saved search. A savedsearches.conf stanza looks like:


[<Splunk name>]
attribute1 = val1 
attribute2 = val2

There are several attribute/value pairs available for savedsearches.conf. The following pairs may be used to create a saved search.


search = <string>

role = <string>

Example

This example search is called j_client_ip and runs the search host="j_apache" | top limit=100 clientip. It's shared with the Admin role -- role is set to 'Admin.'


[j_client_ip]
role = Admin
search = host="j_apache"  | top limit=100 clientip

Note: In versions 3.2 and above, saved searches set to run on a schedule don't show a nextrun time in savedsearches.conf.

This documentation applies to the following versions of Splunk: 3.2 , 3.2.1 , 3.2.2 , 3.2.3 , 3.2.4 , 3.2.5 , 3.2.6 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.