Getting Data In

Determine Index Retention Time

daniel333
Builder

Hello,

We have about 10 indexers setup in our distributed search. Not sure if this matters.

where do I go to determine the rention time on an index? I am trying to ensure we are keeping at least 90 days on a few of them.

Tags (1)
0 Karma

kristian_kolb
Ultra Champion

If you have a search head that searches all the indexers, you can run this search, which should give you the information;

| rest /services/admin/indexes | eval yr = floor(frozenTimePeriodInSecs/86400/365)| eval dy = (frozenTimePeriodInSecs/86400) % 365 | eval ret = yr . " years, " . dy . " days" | stats list(splunk_server) list(frozenTimePeriodInSecs) list(ret) by title

/K

lukejadamec
Super Champion

You'll want to check the frozenTimePeriodInSecs and maxTotalDataSizeMB attributes in indexes.conf.

frozenTimePeriodInSecs sets the time in seconds for how long the cold buckets will stay around before they are deleted or archived (frozen).

maxTotalDataSizeMB sets the max size of the index before buckets are deleted or archived (frozen).

These can be set as both a global attribute and as a per index attribute. See the documentation for your Splunk version at:
http://docs.splunk.com/Documentation/Splunk/6.0/admin/Indexesconf

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...