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!

Monitoring Postgres with OpenTelemetry

Behind every business-critical application, you’ll find databases. These behind-the-scenes stores power ...

Mastering Synthetic Browser Testing: Pro Tips to Keep Your Web App Running Smoothly

To start, if you're new to synthetic monitoring, I recommend exploring this synthetic monitoring overview. In ...

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...