Getting Data In

How to edit my index to change the cold path?

stcrispan
Communicator

We just got done adding another 6T to our Splunk server. We'd planned to create another directory under $SPLUNK_DB, and then change all the indexes' Cold Path to include that new directory in the path.

However, when I went to change the Cold Path, I found I was unable to change it.

How do I change the cold path?

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi stcrispan,
as described at https://docs.splunk.com/Documentation/Splunk/7.2.6/Indexer/Moveanindex you have to follow these items:

  • create a new directory on the new storage,
  • modify the indexes.conf file where your index is setted inserting the new path for colddb;
  • stop splunk,
  • if there are some data on your colddb copy them in the new location,
  • restart Splunk.

Remember to use an absolute path for the new location.
Otherwise, before restarting your Splunk, you have to repeat the previous process for all the indexes you have and then change DB_PATH variable in $SPLUNK_HOME/etc/splunk-launch.conf.

In this way, your indexes are addressed to the new location.

Bye.
Giuseppe

View solution in original post

stcrispan
Communicator

Thank you!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi stcrispan,
as described at https://docs.splunk.com/Documentation/Splunk/7.2.6/Indexer/Moveanindex you have to follow these items:

  • create a new directory on the new storage,
  • modify the indexes.conf file where your index is setted inserting the new path for colddb;
  • stop splunk,
  • if there are some data on your colddb copy them in the new location,
  • restart Splunk.

Remember to use an absolute path for the new location.
Otherwise, before restarting your Splunk, you have to repeat the previous process for all the indexes you have and then change DB_PATH variable in $SPLUNK_HOME/etc/splunk-launch.conf.

In this way, your indexes are addressed to the new location.

Bye.
Giuseppe

Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...