Splunk Enterprise

using tstats in summary index

mcohen13
Loves-to-Learn

Hi

I have created a summary index from an existing index using tstats

but, when I try to use tstats directly on the data in the summary index it doesn't work, I can only using stats

is there a reason or a workaround?

0 Karma

tscroggins
Champion

@mcohen13 

How did you create the summary index?

0 Karma

mcohen13
Loves-to-Learn

I'm using tstats for creating the data for the summary index

0 Karma

tscroggins
Champion

@mcohen13 

tstats reads data from tsidx files, but it doesn't create them. Can you provide more detailed examples?

0 Karma

mcohen13
Loves-to-Learn

I am using the following search template to create the summary index:

| tstats count as event_count where (index="<index name>")
by <fields> _time span=1d
| stats sum(event_count) as event_count
by <fields>

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...