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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...