This page contains information to help you set up summary indexing for any saved search via Splunk Web, and customize it further by editing savedsearches.conf. For an introduction to summary indexing refer to Summary indexing.
Set up summary indexing via Splunk WebSaving results to a summary index is an alert action. Configure summary indexing as an alert action for any scheduled saved search.
1. Create a scheduled search in the Saved searches heading of the Admin page.
2. Select Run this search on a schedule to configure alert properties.
3. Set the Enable summary indexing alert property
4. Optionally, add a field/value pair to add to search results obtained by the scheduled saved search.
Note: Currently, you can only add one field/value pair when configuring summary indexing in Splunk Web. You can add as many as you like if you add them by editing savedsearches.conf.
Configure summary indexing via savedsearches.confThe information in this section explains how to further configure summary indexing once you have set it up in Splunk Web.
Note: You must set up summary indexing for a saved search in Splunk Web before you configure additional settings in savedsearches.conf.
When you enable summary indexing for a saved search in Splunk Web, Splunk automatically generates a stanza in savedsearches.conf. Customize summary indexing by editing the generated stanza. Splunk names the stanza based on the name of the saved search for which you enabled summary indexing, like this: [summary_savedsearchname].
Summary indexing keys:
| action.summary_index = | Set to 1 to enable summary indexing. Set to 0 to disable summary indexing. |
| action.summary_index.fieldname = value | Specify a field/value pair to add to every search result indexed in the summary index. Specify any numeric or string value for value. Add additional action.summary_index.fieldname = value | "value" | "long string" entries to append as many field/value pairs to events going into the summary index as you like. |
Example:
This example shows a configuration for a summary index of Web statistics. The keys listed below enable summary indexing for the saved search "MonthlyWebstatsReport", and append the field Webstatsreport witht a value of 2008 to every event going into the summary index.
# name of the summary index= MonthlyWebstatsReport [summary_MonthlyWebstatsReport] # enable summary indexing action.summary_index = 1 # add these keys to each event action.summary_index.Webstatsreport=2008
In addition to the settings you configure in savedsearches.conf, summary indexing requires that settings exist in indexes.conf, and alert_actions.conf. Splunk ships with the necessary default settings:
Caution: Do not edit settings in alert_actions.conf without explicit instructions from Splunk staff.
Comments
No comments have been submitted.