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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...