Getting Data In

Logs retention policy

SS1
Path Finder

Hi SPlunkers,

We have multiple sources reporting to same index, what we observe is for few sources we can see the searchable earliest event from the month of September and for few sources the earliest event from August. Does different source have different retention policies? or the data is stored in different buckets which are searchable

 

Retention policy for the index:

Setting Value

maxTotalDataSizeMB307200frozenTimePeriodInSecs188697600homePath.maxDataSizeMB0coldPath.maxDataSizeMB0
Labels (3)
0 Karma

somesoni2
Revered Legend

Have a look at very useful Splunk documentation about Splunk retention policy here: https://docs.splunk.com/Documentation/Splunk/8.0.6/Indexer/Setaretirementandarchivingpolicy#Freeze_d...

Total Index size does cause older data to be frozen, so that should be the issue here as retention period is quite large.

0 Karma

SS1
Path Finder

Thanks for the reply.

Could this happen because of the index size which is why the logs older than september are not searchable?  we are able to view fluentd logs in the same index

We currently have a 300GB index, which saves about 3 weeks given current ingestion rates. 

0 Karma

somesoni2
Revered Legend

The retention policy applies at index level. All the sources/sourcetypes within that index will have same retention period.

Having said that, the retention period of N days means that data will be completely available for at least N days. Data older than N days may be seen but they're undergoing frozen process. The reason for partial data past retention period is how Splunk stores and freezes data. Data is stored in buckets and a bucket is only frozen when all events in that bucket are older than retention period. Till that happens data from that bucket will be searchable (hence partial data).

Your retention period is set to 188697600 (2184 days), so you should see all the data for this years Aug/Sep. It could happen that different sources started sending data to Splunk at different time, hence the oldest data you see have different dates for different sources.

0 Karma

SS1
Path Finder

Thanks for the reply.

Could this happen because of the index size which is why the logs older than september are not searchable?  we are able to view fluentd logs in the same index

We currently have a 300GB index, which saves about 3 weeks given current ingestion rates. 

Is there any other setting we need to look into it?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...