Refine your search:

3
1

I'm interested in only keeping data for X number of days. After X days, I want the data to be deleted from Splunk. Is this possible?

Can it be done through the GUI or config files?

Is X equal to number of days? hours? minutes? seconds?

Is it specific to only to one index or globally across all data that Splunk indexes?

asked 30 Jun '10, 14:40

ericmoss's gravatar image

ericmoss
73229
accept rate: 0%

edited 04 Oct '11, 02:33

jlaw's gravatar image

jlaw ♦
20113


One Answer:

You can configure a retention period per index and you have to do this in the configuration file (indexes.conf).

The configuration option is called frozenTimePeriodInSecs and has to be configured in seconds. So for example if you want to keep your events for 30 days, you would configure it this way:

[test_index]
homePath = $SPLUNK_DB/test_index/db
coldPath = $SPLUNK_DB/test_index/colddb
thawedPath = $SPLUNK_DB/test_index/thaweddb
frozenTimePeriodInSecs = 2592000

Note that splunk will not remove every event once it's older than defined in frozenTimePeriodInSecs, but when the bucket it's contained in is past this period. See http://www.splunk.com/base/Documentation/latest/Admin/Setaretirementandarchivingpolicy

link

answered 30 Jun '10, 15:06

ziegfried's gravatar image

ziegfried ♦
7.1k1315
accept rate: 53%

edited 30 Nov '10, 14:44

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×63
×17
×5
×4

Asked: 30 Jun '10, 14:40

Seen: 2,638 times

Last updated: 04 Oct '11, 02:33

Copyright © 2005-2012 Splunk, Inc. All rights reserved.