Getting Data In

How can I purge data older than say 30 days from some but not all of my indexes to free up disk space?

bgamblin
Explorer

I have run out of disk space on my indexers. I need to reclaim space and want to purge data from some of the indexes but save the data in others. How would I do that?

Tags (2)
0 Karma

yannK
Splunk Employee
Splunk Employee

You can edit the indexes.conf on the indexers, and specify a time retention on a per index basis. (frozenTimePeriodInSecs)

bmacias84
Champion

I would also consider using a combination of maxTotalDataSizeMB, homePath.maxDataSizeMB, and coldPath.maxDataSizeMB to control indice size.

0 Karma

dflodstrom
Builder

You can adjust the retention of your index and it will start freezing old buckets or you can use the delete command to be more selective:

http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/Delete
0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...