Deployment Architecture

How to move db location of one Index in Indexer clustering

dvohra
Explorer

Hi,

My requirement is to move DB location of only one Index but not all Indexes in the same indexer. Is it possible ?

 

Labels (3)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

splunk-launch.conf file has config for SPLUNK_DB variable which will change all index locations.

On my sample setting in indexes.conf I didn't use SPLUNK_DB variable, that is why this variable does not effect the location. 

Please remember after your change the path in indexes.conf and push new config to indexers, old indexed data will not be moved by Splunk. You should copy all old files to new path on all indexers and restart indexers again.

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

0 Karma

scelikok
SplunkTrust
SplunkTrust

splunk-launch.conf file has config for SPLUNK_DB variable which will change all index locations.

On my sample setting in indexes.conf I didn't use SPLUNK_DB variable, that is why this variable does not effect the location. 

Please remember after your change the path in indexes.conf and push new config to indexers, old indexed data will not be moved by Splunk. You should copy all old files to new path on all indexers and restart indexers again.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @dvohra,

Each index has its own home, cold and thawed location path. You can change particular index setting under its stanza.

https://docs.splunk.com/Documentation/Splunk/8.1.2/Indexer/Configureindexstorage#Configure_index_pat...

Sample;

[index_name]
homePath   = /data/new_indexPath/index_name/db
coldPath   = /data/new_indexPath/index_name/colddb
thawedPath = /data/new_indexPath/index_name/thaweddb
If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

dvohra
Explorer

Thanks for the details.

But there is a config File which is global for all indexes $SPLUNK_HOME/etc/splunk-launch. conf

Do we need to make any changes there ?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...