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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...