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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...