Getting Data In

How often does Splunk check to apply retention policy?

hulahoop
Splunk Employee
Splunk Employee

If a size- or time-based retention policy is set via maxTotalDataSizeMB or frozenTimePeriodInSecs in indexes.conf, how often does Splunk check the datastore to see if either of these conditions has been met? Splunk checks on startup/restart, then how often in between? Is this interval tunable? I didn't see anything in indexes.conf.spec.

Tags (1)
1 Solution

hulahoop
Splunk Employee
Splunk Employee

I didn't look close enough. Splunk checks every 60 seconds by default. From indexes.conf.spec:

rotatePeriodInSecs = <integer>
* Frequency (in seconds) to check if a new hot DB needs to be created.
* Also the frequency to check if there are any cold DBs that need to be frozen.
* Defaults to 60.

View solution in original post

hulahoop
Splunk Employee
Splunk Employee

I didn't look close enough. Splunk checks every 60 seconds by default. From indexes.conf.spec:

rotatePeriodInSecs = <integer>
* Frequency (in seconds) to check if a new hot DB needs to be created.
* Also the frequency to check if there are any cold DBs that need to be frozen.
* Defaults to 60.

jrodman
Splunk Employee
Splunk Employee

In 3.x it was every few minutes. I'll have to do some code Splunking to find the current information.

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...