Getting Data In

Can I migrate indexes into a volume reference?

ephemeric
Contributor

Hi,

Forgive me if this is a dumb question... can I move an index(s) into a volume reference?
Index paths will remain the same as we want to limit total size via "maxVolumeDataSizeMB".
Will the index name(s) be created in "coldToFrozenDir"?

I have an index(s) in indexes.conf (SPLUNK_DB=/media/data/splunk):

[sonicwall]
coldPath = $SPLUNK_DB/sonicwall/colddb
homePath = $SPLUNK_DB/sonicwall/db
thawedPath = $SPLUNK_DB/sonicwall/thawedd

[index n]
...

I wish for new indexes.conf to be:

coldToFrozenDir = /media/archive

[volume:san]
path = /media/data/splunk
maxVolumeDataSizeMB = 2000000

[sonicwall]
coldPath = volume:san/sonicwall/colddb
homePath = volume:san/sonicwall/db
thawedPath = $SPLUNK_DB/sonicwall/thaweddb

[index n]
...

Thank you.

0 Karma

jkat54
SplunkTrust
SplunkTrust

Yes you can "migrate" like this. Usually good to backup your data before playing though 😉

The index names will only show up in coldToFrozenDir when a bucket roles to frozen (I believe, but could be wrong).

0 Karma

somesoni2
SplunkTrust
SplunkTrust

You should be fine.

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