Getting Data In

How can we view the data retention policy we have set?

Path Finder

Hi All,

We have set the data retention has 1 year (365 days) for in cluster master. But when we search the data in Search and Reporting app for an index then we can able to fetch data more than a year too. For audit purpose we need to track what would be the exact data retention and after that there should not be any logs for the same. But in our case we can able to fetch data more than a year too.

So is there any search query that can able to pull the exact data retention which has been set for all indexes and beyond that there should not be any data for that particular index.

These are the configurations which we have been set in cluster master server under the following folder:


Hey anandhalagarasan,

The buckets that are stored is in the form db_newesttime_oldesttime_localid_guid .
So retention of bucket won't happen unless your newest time is under retention period.
So the bucket will be searchable and also the data that is there in the bucket till the oldest_time. That is the reason you are able to see older data.
Hope this helps!!

0 Karma

Path Finder

Hey @anandhalagarasan

got the solution?

0 Karma

Splunk Employee
Splunk Employee

Data retention cannot enforce data deletion at an exact point in time. A bucket will be frozen when the youngest/most recent event in the bucket is older than your configured frozenTimePeriodInSecs.

If you need to remove anything older than 1 year from search results, you can schedule a daily search that identifies events that are older than 1 year and uses "| delete" to mark them as deleted. Note that this will not remove the events from your indices, but they will no longer be searchable.

0 Karma

0 Karma

Path Finder

Thanks for your swift response.

As per both the links when i checked , the index value has been set for 1 year but when i tried to search the data for any of those index i can able to retrieve for more than a year too..

So kindly help on this.

0 Karma
Get Updates on the Splunk Community!

Don't wait! Accept the Mission Possible: Splunk Adoption Challenge Now and Win ...

Attention everyone! We have exciting news to share! We are recruiting new members for the Mission Possible: ...

Unify Your SecOps with Splunk Mission Control

In today’s post, I'm excited to share some recent Splunk Mission Control innovations. With Splunk Mission ...

Data Preparation Made Easy: SPL2 for Edge Processor

By now, you may have heard the exciting news that Edge Processor, the easy-to-use Splunk data preparation tool ...