Monitoring Splunk

frozenTimePeriodInSecs and indexer disk space

khhenderson
Path Finder

In indexes.conf on the indexer I have my frozenTimePeriodInSecs set to 15552000 = 180 days on indexes that I knew would be big. That seems to be more than I need to keep. I would like to cut it in half 7776000 seconds = 90 days.

Once I do so and restart splunk, is there any additional steps I'll need to do to free up disk space in the indexer?

Tags (2)
0 Karma

jtrucks
Splunk Employee
Splunk Employee

You could just limit the max size of each index by setting maxTotalDataSizeMB and then you don't have to worry about retention length as the retention will be controlled by disk space. You can then set frozenTimePeriodInSecs to your max desired retention time. This has the nice effect of not keeping data longer than you want to have it available (to meet log retention rules for example) but still allow for less than that time period if you have less space available on that indexer.

--
Jesse Trucks
Minister of Magic

khhenderson
Path Finder

I've look at the documentation and it looks like I can use both maxTotalDataSizeMB and frozenTimePeriodInSecs to keep things in control.

0 Karma

kristian_kolb
Ultra Champion

A good solution if you're short on disk space - but not necessarily a great idea if you have compliance requirements to store some data for a certain minimum amount of time. A sudden surge of events could then reduce your index to only hold a few days (or even hours) worth of events.

/K

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...