Book Image

Mastering Splunk

By : James D. Miller
Book Image

Mastering Splunk

By: James D. Miller

Overview of this book

Table of Contents (18 chapters)
Mastering Splunk
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Moving your index database


If you need to, you can actually transport your Splunk index database or individual indexes (or parts of an index) to entirely new locations.

This process simply involves the following steps:

  1. Stop Splunk.

  2. Copy the files required for the index.

  3. Unset the Splunk_DB variable.

  4. Reset the Splunk_DB variable (by editing the %SPLUNK_HOME%\etc\splunk-launch.conf file).

  5. Restart Splunk.

  6. Delete the old index folder/files.

You can change the path to your indexes with Splunk Web; however, this method only affects the data written to the index after the path change is made. Splunk Web should really only be used for setting paths to new indexes, which we discussed earlier in this chapter.