Admin Manual

 


How Splunk Works

Move an index

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Contents

Move an index

You can move your Splunk index from one location to another.


Please note: do not try to break up and move parts of an index filesystem manually. If you need to subdivide an existing index, contact Splunk Support for assistance.


We'll use the example destination /foo/bar in the instructions below.


Configuration

# mkdir /foo/bar
# chown splunk /foo/bar/
# chmod 755 /foo/bar/
# ./splunk stop
# cp -r $SPLUNK_DB/* /foo/bar/
# vi $SPLUNK_HOME/bin/setSplunkEnv
SPLUNK_DB=/foo/bar

Please note: ensure that the path $SPLUNK_HOME/var/lib/splunk/searches exists. Splunk will save a small amount of index data here and without it your index will appear to vanish. This issue will be addressed in 3.0.2.


# ./splunk start

The Splunk Server should pick up where it left off, reading from and writing to the new copy of its old index filesystem.

This documentation applies to the following versions of Splunk: 3.0 , 3.0.1 , 3.0.2 , 3.1 , 3.1.1 , 3.1.2 , 3.1.3 , 3.1.4 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.

Feedback submitted, thanks!