Splunk Search

Find index retention stats

shankern
Explorer

Hi,
I would like to get the following stats in a distributed index setup:

index name, current size of index (sum all indexers), maximum size/quota allocated, first events timestamp, last events timestamp, total retention time

Thanks
Shanker

Tags (1)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try this

| rest /services/data/indexes | table  title splunk_server currentDBSizeMB frozenTimePeriodInSecs maxTime minTime totalEventCount

Details of returned values can be found here.
http://docs.splunk.com/Documentation/Splunk/6.0.2/RESTAPI/RESTindex

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Try this

| rest /services/data/indexes | table  title splunk_server currentDBSizeMB frozenTimePeriodInSecs maxTime minTime totalEventCount

Details of returned values can be found here.
http://docs.splunk.com/Documentation/Splunk/6.0.2/RESTAPI/RESTindex

shankern
Explorer

From the result the minTime values seems inaccurate. My splunk setup is only 1 month old but the minTime is giving timestamps from year 2011, 2012 etc. Any idea why?
Thanks
Shanker

0 Karma

shankern
Explorer

Thanks 🙂 Gives me exactly what I wanted.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...