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!

Enterprise Security Content Update (ESCU) | New Releases

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

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...