Accelerate Repeated Splunk Searches with Data Model Acceleration and tstats
Enable Data Model Acceleration so tstats reads pre-built summaries instead of raw events. Learn the correct syntax, summary-range limits, and how to verify acceleration without performance guarantees.
09 Jan 2026, 05:08 UTC

When a dashboard repeatedly counts events by the same field across terabytes of raw data, every search re-reads and re-parses the original events on the indexers. Splunk Data Model Acceleration (DMA) pre-computes selected data-model fields into a summary index stored on each indexer. The practical takeaway: enable acceleration on a data model, add only the fields you query, and use the tstats command to read the summary instead of scanning raw events. This benefit applies only to modeled attributes and only inside the configured summary range; outside that window Splunk falls back to raw data or omits the missing periods, so speed is not guaranteed for every query.
How Acceleration Builds the Summary
A data model defines objects and attributes. Attributes are the fields you want to query quickly, such as src_port or action. When you enable acceleration, Splunk schedules a background search on the indexers that extracts those attributes and writes them to a summary index. As new events arrive, the summary is incrementally updated. The summary range setting controls how far back in time the pre-computed data covers.
Worked Configuration: Accelerate a Network Traffic Model
Run these steps in Splunk Web. You need the search capability and read access to the data model. Indexer administrators should confirm available disk space before enabling acceleration on large indexes.
- Open Settings > Data Models.
- Open an existing model or create one, for example
Network_Traffic. - In the model editor, add the attributes you plan to query with
tstats, such assrc_port,dest_port, andaction. Fields not listed here are invisible totstatseven if they exist in raw events. - Toggle Accelerated on and set the Summary Range, for example Last 7 days. This defines the window covered by the summary index.
- Save the model. Splunk begins building the summary. Check the Data Models page until the status shows acceleration complete rather than building.
Querying the Summary with tstats
Run tstats from the Search & Reporting app over a time range inside the summary range. Clause order can vary by Splunk version, so verify against your installed Search Reference. A common pattern is:
| tstats count where index=network by src_port from datamodel=Network_Traffic
countaggregates matching events.where index=networknarrows the query to an index; omit it if the model already constrains the data.by src_portgroups results by the modeled attribute.from datamodel=Network_Traffictells Splunk to read the accelerated summary for that model.
To restrict results strictly to summarized data, add summariesonly=t. Events outside the summary range are then excluded rather than triggering a raw-data scan. Without this argument, behavior for uncovered periods depends on your Splunk version and search configuration.
Verifying the Result
- In Settings > Data Models, confirm the model status is accelerated and no longer building.
- Run the equivalent raw
searchquery and thetstatsquery over the same time window. Open Job Inspector for each and compare execution profile and scan behavior. - Monitor indexer disk usage after enabling acceleration. Summary indexes consume additional storage on each indexer; growth depends on field cardinality and data volume.
Limits and Common Mistakes
- Modeled fields only:
tstatscannot reference raw fields that were not added as data-model attributes. - Summary range boundary: searches outside the range do not receive the acceleration benefit. With
summariesonly=t, those periods return no summary data; without it, Splunk may scan raw events for the uncovered portion. - Rebuild cost: adding, removing, or changing attributes in an accelerated model can trigger a full summary rebuild. Plan model changes during low-usage periods.
- Disk usage: acceleration duplicates selected fields into summary storage. There is no universal size ratio; measure growth on your indexers before accelerating high-volume models.
- No guaranteed latency: search speed depends on event volume, field cardinality, hardware, and Splunk version. Do not assume sub-second response for billions of events.
Rolling Back Acceleration
Enabling acceleration changes system state by creating summary data. To roll back, open the data model in Settings > Data Models and toggle Accelerated off. Splunk stops updating the summary. Existing summary data remains until it ages out according to index retention. Reclaiming space sooner requires indexer-admin actions to remove summary data; treat that as destructive and confirm retention policy first.
Practical Check Before Rollout
Accelerate a small test model first, run tstats and raw search over the same window, and compare Job Inspector results. Confirm indexer disk growth over at least one day of data ingestion before enabling acceleration on production models covering terabytes of events.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.