Deployment Architecture

How to save a certain index to different location on an indexer (not the whole SPLUNK_DB)?

pashtet13
New Member

I have few noisy indexes that I would like to save to another drive on the Splunk Indexer server. What would be the best way to do it? Splunk documentation only has instructions on how to move the whole SPLUNK_DB, but I don't need that...

Should I create a new variable in splunk-launch.conf (say SPLUNK_DB_TIER2) and update my indexes.conf so it looks like this (and will this work?):

[cisco_asa]
coldPath = $SPLUNK_DB_TIER2\cisco_asa\colddb
homePath = $SPLUNK_DB_TIER2\cisco_asa\db
thawedPath = $SPLUNK_DB_TIER2\cisco_asa\thaweddb

Or can I manually specify the path in indexes.conf without using $ SPLUNK_DB like this:

coldPath = "D:\cisco_asa\colddb"
homePath = "D:\cisco_asa\db"
thawedPath = "D:\cisco_asa\thaweddb"
0 Karma
1 Solution

somesoni2
Revered Legend

If it's just one index you want to move to separate drive, then I would suggest to enter absolute/actual new path for that index in the indexes.conf.

[cisco_asa]
coldPath = D:\cisco_asa\colddb
homePath = D:\cisco_asa\db
thawedPath = D:\cisco_asa\thaweddb
...other settings...

If you want to create a variable/token to refer this large drive, the you can create volume reference and use that for bigger/chattier indexes, like this

[volume:large_indexes]
path = D:\SplunkDb
maxVolumeDataSizeMB = 50000000  #optional, or update per your size

[cisco_asa]
coldPath = volume:large_indexes\cisco_asa\colddb
homePath = volume:large_indexes\cisco_asa\db
thawedPath = volume:large_indexes\cisco_asa\thaweddb
...other settings...

View solution in original post

somesoni2
Revered Legend

If it's just one index you want to move to separate drive, then I would suggest to enter absolute/actual new path for that index in the indexes.conf.

[cisco_asa]
coldPath = D:\cisco_asa\colddb
homePath = D:\cisco_asa\db
thawedPath = D:\cisco_asa\thaweddb
...other settings...

If you want to create a variable/token to refer this large drive, the you can create volume reference and use that for bigger/chattier indexes, like this

[volume:large_indexes]
path = D:\SplunkDb
maxVolumeDataSizeMB = 50000000  #optional, or update per your size

[cisco_asa]
coldPath = volume:large_indexes\cisco_asa\colddb
homePath = volume:large_indexes\cisco_asa\db
thawedPath = volume:large_indexes\cisco_asa\thaweddb
...other settings...

pashtet13
New Member

Great, thanks!

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