Getting Data In

Data Retention and events from imported files

santorof
Communicator

I recently imported a few events from a csv into Splunk. These events were from 2014. Our data retention policy was configured for 180 days. Does the data go cold 180 days from the current date or from when the events were indexed? I cant seem to find the events that were imported a few days ago.

Tags (1)
0 Karma
1 Solution

somesoni2
Revered Legend

The retention period of the data is based on the timestamp of the data in a bucket. The bucket names are in format db___* . A bucket is rolled over to frozen when the epochtimeoftheoldestevent is older than your data retention period (180 day in your case) from current time. See more details on how data retention works here.

https://wiki.splunk.com/Deploy:BucketRotationAndRetention

View solution in original post

0 Karma

somesoni2
Revered Legend

The retention period of the data is based on the timestamp of the data in a bucket. The bucket names are in format db___* . A bucket is rolled over to frozen when the epochtimeoftheoldestevent is older than your data retention period (180 day in your case) from current time. See more details on how data retention works here.

https://wiki.splunk.com/Deploy:BucketRotationAndRetention

0 Karma

santorof
Communicator

I read the document but whats not clear is if the time stamp is created when the event hits the bucket or is extracted from the event. This would help me in determining if the data that I ingested was rolled over into frozen from my policy or something else entirely

0 Karma

somesoni2
Revered Legend

The timestamp of the event is depending upon the sourcetype/source/host definition that you define on your Indexer/Heavy forwarder (props.conf). You should check that to identify if the Splunk will take the timestamp from the event data itself OR use the current timestamp.

0 Karma

santorof
Communicator

Appreciate it thank you. I will take a look.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...