Getting Data In

How to test a coldToFrozenScript?

scharlipknewton
New Member

I'm writing a script to archive frozen data to S3, and the archiving documentation seems pretty straightforward. Here's what I'm not so clear about: what's the best way to test my script once I've written it? How can I manually trigger a bucket to roll from cold to frozen?

0 Karma

somesoni2
Revered Legend

You can create a test index with small value for these attributes
1. maxWarmDBCount (default 300, set to 1)
2. maxHotSpanSecs (default 777600 or 90 days, set to 3600 or 1hr)
3. maxDataSize (set to 1 i.e. 1 MB)
4. maxTotalDataSizeMB (set to 1 i.e. 1 MB)
5. frozenTimePeriodInSecs (default 188697600 , set to 3600)

Now setup some data to go to that index (or setup a scheduled search which uses collect command to send some test data to it). With above configurations, the data will roll to frozen frequently to test your script.

0 Karma
Get Updates on the Splunk Community!

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...