Splunk Enterprise

Calculate total consumed cold storage for all indexers

jcspigler2010
Path Finder

I have found ways to calculate total storage for all indexers per index. But how would I focus in on what is only occupying coldPath space? Possibly break this down per index.

thanks!

Tags (1)
0 Karma
1 Solution

adonio
Ultra Champion

you can use the | dbinspect command
cold buckets are under state = cold.
then you can create searches calculating the total size by using sizeOnDiskMB field
so something like that:
| dbinspect index=* state = cold | eval indexSizeGB = sizeOnDiskMB / 1024 | stats sum(indexSizeGB) by index

Hope it helps

View solution in original post

adonio
Ultra Champion

you can use the | dbinspect command
cold buckets are under state = cold.
then you can create searches calculating the total size by using sizeOnDiskMB field
so something like that:
| dbinspect index=* state = cold | eval indexSizeGB = sizeOnDiskMB / 1024 | stats sum(indexSizeGB) by index

Hope it helps

jcspigler2010
Path Finder

Thanks adonio

Had to expand on this a little hit. You can't filter on the state until the search is ran. I did the following

| dbinspect index=* | eval indexSizeGB = sizeOnDiskMB / 1024 | stats sum(indexSizeGB) as "Total Size in GBs" by index,state | search state=cold

Thanks pointing me in the right direction!

0 Karma

adonio
Ultra Champion

You are welcome!

0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...