The information in this section explains how to further configure summary indexing once you enable it in Splunk Web.
Note: You must set up the summary indexing via Splunk Web before you configure additional settings in savedsearches.conf. Learn how to configure summary indexing for a scheduled saved search via Splunk Web.
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 with 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.
Summary indexing and license volumeIndexing 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.
Manually configure summary indexingThese instructions show you how to configure summary indexing without using the alert options dialog in Splunk Web.
1. Configure a summary index just like you would any other index via indexes.conf. Learn how to configure an index.
2. Run a search that you want to summarize results from in the search bar of Splunk Web.
3. Add the addinfo command to your search (append | addinfo at the end of your search).
4. Add the collect command to your search (append | collect index=<summaryindexname>).
5. Save the search.
7. Enable summary indexing for the saved search via savedsearches.conf.
Comments
No comments have been submitted.