Installation

How to automate deletion of log data from Splunk Indexer based on time of indexing

sdhiren
Explorer

We are currently indexing big log files (~1 GB in size) in our Splunk indexer using Splunk Universal Forwarder.

All the logs data will be stored in a single index.

We want to make sure the logs data is deleted after one week from the date it was indexed. 

Is there a way to achieve the same?

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use the frozenTimePeriodInSecs setting in indexes.conf to control how long data lives in the index.

[myindex]
frozenTimePeriodInSecs = 604800

 

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...

Unlock Instant Security Insights from Amazon S3 with Splunk Cloud — Try Federated ...

Availability: Must be on Splunk Cloud Platform version 10.1.2507.x to view the free trial banner. If you are ...