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
Legend

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
Legend

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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...