Getting Data In

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

anandhalagarasa
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:

deepashri_123
Motivator

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

N92
Path Finder

Hey @anandhalagarasan

got the solution?

0 Karma

s2_splunk
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

lloydknight
Builder
0 Karma

anandhalagarasa
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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...