Deployment Architecture

Is there a maximum time frame for cold and frozen buckets?

mcirrici
Explorer

I've searched through the docs to find out if there is a max setting in splunk for the bucket retention policy and I have not come across anywhere that says a max time frame you can set within the indexes.conf file.

I'm aware of the option where you can set the time frame in seconds with:

frozenTimePeriodInSecs =

There is an audit requirement where our logs need to be stored for 7 years in remote storage.
Does anybody know if there is a max time limit for buckets and has anyone made a policy to keep frozen logs for multiple years?

0 Karma
1 Solution

ChrisG
Splunk Employee
Splunk Employee

You could write an archiving script to send the frozen buckets to your remote storage. See the Archive indexed data topic in the Managing Indexers and Clusters of Indexers manual, as well as the sample script in $SPLUNK_HOME/bin/coldToFrozenExample.py.

View solution in original post

kbecker
Communicator

Have the same requirement. Just set frozen time period and maxtotaldatasizemb to some very large value ( greater than physical disk you have ). Then nothing will get deleted until frozen time period which in your case is 7 years.

ChrisG
Splunk Employee
Splunk Employee

You could write an archiving script to send the frozen buckets to your remote storage. See the Archive indexed data topic in the Managing Indexers and Clusters of Indexers manual, as well as the sample script in $SPLUNK_HOME/bin/coldToFrozenExample.py.

mcirrici
Explorer

thanks for this. It should be useful for what I'm looking for.

I also need to keep my logs in the hot bucket for 6 months, which option would you recommend within the indexes.conf file to do?

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...