Monitoring Splunk

Why frozenTimePeriodInSecs does not take effect?

Gabriel
Path Finder

Hi everyone

I got a question on the frozenTimePeriodInSecs parameter. Here are my settings inside the indexes.conf file:

/opt/splunk/etc/system/local/indexes.conf

[_internal]
frozenTimePeriodInSecs = 864000 # Data retention set to 10 days.
maxTotalDataSizeMB = 750

[_audit]
frozenTimePeriodInSecs = 864000 # Data retention set to 10 days.
maxTotalDataSizeMB = 750

What I would expect is, that buckets in _internal and _audit where all events are older than 10 days get deleted. However, this is not the case. Anyone knows why? On the other hand, maxTotalDataSizeMB does work as expected.

I have checked a couple places for hints why frozenTimePeriodInSecs does not work. The results of those checks are further down below as screenshots.

- buckets: Whether there are buckets that contain only events older than 10 days.
- btools: Whether the settings are actually taken into account.
- monitoring console: Whether the settings are actually taken into account.
- _internal logs: Check whether there are freeze events occuring. They only appear for maxTotalDataSizeMB.


_audit Buckets_audit Buckets_audit btool output_audit btool outputmonitoring console 1monitoring console 1monitoring console 2monitoring console 2freeze eventsfreeze events


Labels (2)
Tags (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Normally it _should_ work.

The question is how you configured those retention parameters - webui/files/rest? If you did it with conf files, did you reload the daemon? While btool shows the contents of files on disk, you might want to check the runtime config from splunkd memory

splunk show config indexes

and check if it's the same as what btool reports.

Gabriel
Path Finder

Hi Rick 😃

I edited the indexes.conf file by hand on the server, then restarted splunk. Running the command you suggested also shows that frozenTimePeriodInSecs is equivalent to what btool reports and is active in the runtime:

runtime configruntime config

0 Karma
Get Updates on the Splunk Community!

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 at Splunk .conf24 ...

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

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...