Splunk Dev

Log retention for 1 year

Isaor
New Member

Hello,

How it´s possible to retain the logs of my splunk during 1 year?. I need to modify a parameter?. Whats is the default time of retention of logs? and how can i validate that.

Tags (1)
0 Karma

Isaor
New Member

Hello,

I check the index.conf, but i don´t see my index that i created.

0 Karma

kmugglet
Communicator

Hi @isaor,

The retention times are set in indexes.conf
https://docs.splunk.com/Documentation/Splunk/latest/Admin/Indexesconf

For the retention time you set the frozenTimePeriodInSecs

This is the example for the cold to frozen retention period.

    frozenTimePeriodInSecs = <nonnegative integer>
    * Number of seconds after which indexed data rolls to frozen.
    * If you do not specify a coldToFrozenScript, data is deleted when rolled to
      frozen.
    * IMPORTANT: Every event in the DB must be older than frozenTimePeriodInSecs
      before it will roll. Then, the DB will be frozen the next time splunkd
      checks (based on rotatePeriodInSecs attribute).
    * Highest legal value is 4294967295
    * Defaults to 188697600 (6 years).

For 1 year, you would set the value to 31556926 seconds

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...