Search Ref new title 9.2
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
tscollectandsistats.
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.