All Apps and Add-ons

Can Timewrap be used to retrieve index size in MB?

skycree
New Member

I can use the following query to get an index event count for the past four weeks.

index="aws" earliest=-4w@w latest=@w|timechart count span=1w |timewrap m

Is it possible to use timewrap to return the size of the index for the last month?

Tags (1)
0 Karma

lguinn2
Legend

AFAIK, the historical size of an index is not stored anywhere. The amount of data indexed each day is tracked, but not the overall size of the index.

So no, and that's not related to whether or not you use timewrap

martin_mueller
SplunkTrust
SplunkTrust

You could of course create a summary search that stores your indexes' sizes on an hourly or daily basis, and use that for your timewrap search. You can feed that summary search with the current sizes using this search:

| rest /services/data/indexes | fields title currentDBSizeMB
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...