Deployment Architecture

How to move existing cold bucket data?

dcloes
Engager

I've been unable to find this answer directly, but I think I've read between the lines of other questions/answers, but want to make sure.

I have one fairly large index that is chewing up the majority of all available space on H: called Core. I had a H: for Hot and I: for Cold buckets going out of the gate, but I didn't know enough about splunk to know how to set it up correctly. I would like to move all my existing cold buckets from H: to I:

I believe these are the steps:

Stop Splunk
copy each colddb directory from H:/Splunk/{index name}/colddb to I:/Splunk/{Index name}/colddb
copy indexes.conf from c:/program files/splunk/etc/system/default to c:/program files/splunk/etc/local

edit indexes.conf in c:/program files/splunk/etc/local and change:
index definitions

[main]
homePath = $SPLUNK_DB/defaultdb/db
coldPath = $SPLUNK_DB/defaultdb/colddb
thawedPath = $SPLUNK_DB/defaultdb/thaweddb

to

[main]
homePath = $SPLUNK_DB/defaultdb/db
coldPath = I:/SPLUNK/defaultdb/colddb
thawedPath = I:/SPLUNKdefaultdb/thaweddb Don't have any thaweddb data, so don't need to copy any data

Save
restart splunk

*Not sure if I can use "defaultdb" in I:/splunk/defaultdb will work since it doesn't appear to be valid variable syntax, but it will need to be a variable to work since defaultdb needs to change for each of my index names.

Tags (3)

MuS
SplunkTrust
SplunkTrust

Hi dcloes,

This is how it can be done, but be aware you should but the indexes.conf into c:/program files/splunk/etc/system/local.

You can also verify your setting were applied by running this command from the CLI:

 $SPLUNK_HOME/bin/splunk cmd btool splunk cmd btool --debug indexes list <index_name>

With this you can verify if your settings is not over-written by some other indexes.conf, see the docs for more details on this http://docs.splunk.com/Documentation/Splunk/6.3.0/Admin/Wheretofindtheconfigurationfiles

Hope this helps...

cheers, MuS

0 Karma

znaesh
Path Finder

Please advise, is it a safe procedure to copy huge cold buckets to the target partition first, then make indexes.conf change, then perform a quick splunk restart and delete old colddb?

0 Karma

MuS
SplunkTrust
SplunkTrust

This is feasible, but I would not do an open hearth surgery on Splunk 😉
For your data safety, do it while Splunk ist stopped.

cheers, MuS

Get Updates on the Splunk Community!

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

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...