Getting Data In

Why is my bucket not rolling to frozen?

patouellet
Path Finder

Hi,

I have an index that I recently reconfigured with frozenTimePeriodInSecs=94867200, so I shouldn't have events older than about 3 years.

But when looking at the monitoring console, under Index detail, I see

Data Age vs Frozen Age (days): 1587 / 1098
Earliest Event: 2013-11-29

I was under the impression that frozenTimePeriodInSecs would role buckets from cold to frozen, effectively deleting them, but apparently it's not.

What am I missing here?

Thank you

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Buckets won't roll until the newest event is older than frozenTimePeriodInSecs. Depending on the activity in that index, a bucket may have some events that are very old and others that are not old enough to roll.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Buckets won't roll until the newest event is older than frozenTimePeriodInSecs. Depending on the activity in that index, a bucket may have some events that are very old and others that are not old enough to roll.

---
If this reply helps you, Karma would be appreciated.

patouellet
Path Finder

Thanks. Any way I can verify that by querying individual buckets - finding out the most recent event of my oldest bucket?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Run a search to find an event in an old bucket and add | eval bktId=_bkt on the end. Then search | dbinspect index=foo | where bucketId="<bktId>" | convert ctime(startEpoch) | convert ctime(endEpoch) to see the start and end dates for that bucket.

---
If this reply helps you, Karma would be appreciated.

patouellet
Path Finder

Awesome. This revealed that the most recent event in a bucket I thought was pretty old is Jan 1st 2016, which is less than the 3 years I setup in indexes.conf. You rock.

0 Karma
Get Updates on the Splunk Community!

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 ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...