Search Ref new title 9.2

CAUTION: Enterprise. For documentation on the most recent version, go to the latest release.
Note: Splunk Enterprises version 9.0 will no longer be supported as of June 14, 2024. See the Splunk Software Support Policy for details. For information about upgrading to a supported version, see How to upgrade Splunk Enterprise.

Use the collect command to write the results of a search to a summary index that you specify. This workflow is commonly used to preserve precomputed data for reporting, scheduled searches, and other search acceleration scenarios.

Before you run collect, create the target summary index and confirm that the search returns the fields and timestamps you want to store. Because this command writes data back into Splunk indexes, it is considered a risky command and is subject to SPL safeguards.

In this topic set, the related pages expand on the core workflow:

  • Description explains what the command does and why summary indexing can improve reporting efficiency.
  • Examples shows how to collect download events, summarize VPN activity, and ingest fields with HEC-formatted output.
  • See also lists related summary indexing commands such as tscollect and sistats.

A common pattern is to run a transforming search on a schedule, add any metadata needed for downstream analysis, and then use collect to persist the resulting events into the summary index for later searches.