Getting Data In

Per index archiving

alexander_lucas
Explorer

If I define this in .../local/indexes.conf


[default]
coldToFrozenDir = $SPLUNK_DB/frozenArchive

Will Splunk roll "frozen" buckets from all indexes inside var/lib/splunk/frozenArchive? If so, can this cause conflicts or is there auto-suffix/prefix for file names? My idea was to have a general coldToFrozenDir rather than per index. This would (in theory) take care of new indexes.

1 Solution

gkanapathy
Splunk Employee
Splunk Employee

I'm not sure this will work as you want, but I believe that if you simply put coldToFrozenDir = $SPLUNK_DB/frozenArchive in the indexes.conf file at the top, not under a stanza header, it will have the effect you're looking for. However, please note that once the buckets are rolled into the directory, there is nothing that will tell you what index it originally came from. They will still work and still be usable, but the index name will be lost.

View solution in original post

alexander_lucas
Explorer

it would still be nice to have a $SPUNK_INDEX variable so that one could add a generic coldToFrozenDir var

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

I'm not sure this will work as you want, but I believe that if you simply put coldToFrozenDir = $SPLUNK_DB/frozenArchive in the indexes.conf file at the top, not under a stanza header, it will have the effect you're looking for. However, please note that once the buckets are rolled into the directory, there is nothing that will tell you what index it originally came from. They will still work and still be usable, but the index name will be lost.

alexander_lucas
Explorer

Perhaps there is a special variable for index names?
e.g.
coldToFrozenDir = $SPLUNK_DB/frozenArchive/$SPLUNK_INDEX
then the structure would be:
.../frozenArchive/main
.../frozenArchive/_audit
...[etc]

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