Splunk Enterprise

Is there any way to globally force all indexes to use a different location for their colddb?

msarro
Builder

Hi everyone. We have a number of devs working on a test server and are running into issues with space. It would be very helpful if we could somehow force ALL splunk index colddb's to use an external disk.

The only way I know of to do this is with an indexes.conf file. However the problem with that is you need to manually specify the path for the new colddb location. We have indexes constantly being created and removed for testing purposes, and modifying the indexes.conf file requires a restart.

A global command that would automatically say, "by default, all cold db's should be here" would be really helpful.

Tags (1)
0 Karma

sowings
Splunk Employee
Splunk Employee

1) You can use the REST API to create an index on the fly. See http://splunk-base.splunk.com/answers/96233/create-new-index-without-restarting-splunk-indexer.

2) The problem with a specific coldPath setting is that each index will have to have its own, and if they all inherit the same setting, they'll be writing to the same folder and will thereby generate bucket collisions.

3) Try a volume setting instead. By setting volume:cold, you can then reference a handy shorthand when you create the index.

4) Combine points 1 and 3, create a shell script to issue a curl command line REST call to create a new index, and automatically populate the coldPath setting including a volume:cold (and the name of the index as supplied on the command line) to give your developers the flexibility they need.

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