Admin Manual

 


About the Splunk Admin Manual
How Splunk Works

Configure summary indexing

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

Configure summary indexing

For a general overview of summary indexing and instructions for setting up summary indexing through Splunk Web, see the topic Increase reporting efficiency with summary indexing in the Users Manual.

You can't manually configure a summary index for a search in savedsearches.conf until the search:

Note: You must configure an alert for your saved search if you want to use it in conjunction with a summary index; if you do not the search will run but it won't populate the summary index.

When you perform these steps through Splunk Web, the system generates an index for you when you enable the summary index for the saved, scheduled, alarm-set search. The index will have the same name as the saved search. At this point you can manually configure summary indexing for the saved search.

For details about using Splunk Web to perform these actions for searches, see the Save, schedule, set alerts, and enable summary indexing topic in the User Manual.

Alternatively, you can use the addinfo and collect search commands to create a search that will be saved and scheduled, and which will populate a pre-created summary index. For more information about that method, see "Manually populate the summary index" in this topic.

Note: Indexing events in a summary index counts against your license volume. We recommend that you not index more events in your summary indexes than you really need. Consult Splunk support for specific information on license volume impact.


Customize summary indexing for a saved, scheduled, alert-configured search

When you use Splunk Web to enable summary indexing for a scheduled saved search, Splunk automatically generates a stanza in $SPLUNK_HOME/etc/system/local/savedsearches.conf. You can customize summary indexing for the saved search by editing this stanza.

[ < name > ]
action.summary_index = < 1 | 0 >
action.summary_index.name = <string>
action.summary_index.<field> = <string>


Manually populate a manually created summary index

If you want to configure summary indexing without using the search options dialog in Splunk Web, you must first configure a summary index just like you would any other index via indexes.conf. For more information about manual index configuration, see, see the topic How indexing works in this manual.

Important: You must restart Splunk for changes in indexes.conf to take effect.

1. Run a search that you want to summarize results from in the Splunk Web search bar.

2. Use the addinfo search command. Append | addinfo to the end of your search.

3. Add the collect search command. Append |collect index=<index_name> addtime marker="info_search_name=\"<summary_search_name>\"" to the end of the search.

Note: For the general case we recommend that you use the provided summary_index alert action. Configuring via addinfo and collect requires some redundant steps that are not needed when generating summary index events from scheduled searches. Manual configuration remains necessary when backfilling a summary index for timeranges which have already transpired.


Manually configure a search to populate a summary index

If you've used Splunk Web to save, schedule, and configure an alert for a search, but haven't used Splunk Web to enable the summary index for the search, you can easily enable summary indexing for the saved search through savedsearches.conf as long as you have a new index for it to populate. For more information about manual index configuration, see, see the topic How indexing works in this manual.

Add the following keys to $SPLUNK_HOME/etc/system/local/savedsearches.conf:


Example of a summary index configuration

This example shows a configuration for a summary index of Web statistics as it might appear in savedsearches.conf. The keys listed below enable summary indexing for the saved search "MonthlyWebstatsReport", and append the field Webstatsreport with a value of 2008 to every event going into the summary index.

#name of the saved search = Apache Method Summary
[Apache Method Summary]
# sets the search to run at each search interval
counttype = always
# enable the search schedule
enableSched = 1
# search interval in cron notation (this means "every 5 minutes")
schedule = */12****
# id of user for saved search
userid = jsmith
# search string for summary index
search = index=apache_raw startminutesago=30 endminutesago=25 | extract auto=false | stats count by method
# enable summary indexing
action.summary_index = 1
#name of summary index to which search results are added
action.summary_index._name = summary   
# add these keys to each event
action.summary_index.report = "count by method"


Other configuration files affected by summary indexing

In addition to the settings you configure in savedsearches.conf, there are also settings for summary indexing in indexes.conf and alert_actions.conf.

Indexes.conf specifies index configuration for the summary index. Alert_actions.conf controls the alert actions (including summary indexing) associated with saved searches.

Caution: Do not edit settings in alert_actions.conf without explicit instructions from Splunk staff.

This documentation applies to the following versions of Splunk: 3.3 , 3.3.1 , 3.3.2 , 3.3.3 , 3.3.4 , 3.4 , 3.4.1 , 3.4.2 , 3.4.3 , 3.4.5 , 3.4.6 , 3.4.8 , 3.4.9 , 3.4.10 , 3.4.11 , 3.4.12 , 3.4.13 , 3.4.14 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.