Splunk Search

Can you use tstats to get daily index or indexer volume?

Glasses
Builder

Just wondering if its possible to get data volume / size from TSTATS.

I know you can do something like this to get counts (events/per sec)

| tstats count WHERE index=* by index| eval events_per_second=count/(3600*24)

but how can you use tstats for find volume of data per time?

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

As far as I can tell, there is no indexed field that indicates data volume so you can't use tstats to get that value.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

As far as I can tell, there is no indexed field that indicates data volume so you can't use tstats to get that value.

---
If this reply helps you, Karma would be appreciated.
0 Karma

Glasses
Builder

thank you for confirming, I could not find a list of tstats fields.... is there a doc for tstat fields?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

There is no documentation for tstats fields because the list of fields is not fixed. It depends on which fields you choose to extract at index time. You can, however, use the walklex command to find such a list.

walklex type=term index=foo 
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...