|
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? |
|
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:
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 |
