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!

Operationalizing TDIR: Building a More Resilient, Scalable SOC

Optimizing SOC workflows with a unified, risk-based approach to Threat Detection, Investigation, and Response ...

Pro Tips for First-Time .conf Attendees: Advice from SplunkTrust

Heading to your first .Conf? You’re in for an unforgettable ride — learning, networking, swag collecting, ...

Raise Your Skills at the .conf25 Builder Bar: Your Splunk Developer Destination

Calling all Splunk developers, custom SPL builders, dashboarders, and Splunkbase app creators – the Builder ...