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
SplunkTrust
SplunkTrust

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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...