Getting Data In

What is the proper indexes.conf syntax for moving colddb to another volume?

Michael
Contributor

I would just like to confirm my syntax... I've read a bunch of postings, I've RTFM, but none have an actual sample or example of what's needed in the int (that I've found).

I've stopped Splunk.
Moved the colddb from old location to new location.
Edited /opt/splunk/etc/system/local/indexes.conf and added the following:
coldPath = /newspace/colddb
coldPath.maxDataSizeMB = 409600
And restarted Splunk.

That's it, in a nutshell, right? (assuming a 500 gig drive).

Please let me know if that 's wrong...

thanks!
Mike

0 Karma

MuS
Legend

Hi Mike,

in a nutshell it is as simple as this:

  1. Stop Splunk
  2. Copy colddb from $SPLUNK_DB//colddb to /newspace/colddb
  3. Edited /opt/splunk/etc/system/local/indexes.conf and add the following for the index:

    coldPath = /newspace/colddb

  4. Restart Splunk

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
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...