Getting Data In

Rename an index in 4.1.8

cosmic_cow
Engager

We've renamed an environment that was indexing to an identically named index. Currently, the renamed environment is indexing to the old name. Is there a way to rename an index? If so, how?

Tags (3)
1 Solution

jbsplunk
Splunk Employee
Splunk Employee

You can't really rename an index, but you can create a new index with the name you want (via indexes.conf/GUI) and move the data from the old index to the new index.

You would need to stop Splunk, then move the $SPLUNK_DB/<old_index> directory to $SPLUNK_DB/<new_index> and then start Splunk. That should be all you'd need to do to get the data in the new index. Keep in mind any searches that reference the other index will need to be changed.

View solution in original post

jbsplunk
Splunk Employee
Splunk Employee

You can't really rename an index, but you can create a new index with the name you want (via indexes.conf/GUI) and move the data from the old index to the new index.

You would need to stop Splunk, then move the $SPLUNK_DB/<old_index> directory to $SPLUNK_DB/<new_index> and then start Splunk. That should be all you'd need to do to get the data in the new index. Keep in mind any searches that reference the other index will need to be changed.

harry2007gsp
Path Finder

Is Splunk gonna charge us for this move?

0 Karma

churyn_splunk
Splunk Employee
Splunk Employee

No. This administrative procedure moves the index files "underneath the hood" so to speak. The files are already parsed and do not go through the parsing/indexing phase again. Thus, no license meter.

jbsplunk
Splunk Employee
Splunk Employee

Glad to hear that it worked, be sure to click the check box to accept the answer so it will show as you accepting it.

cosmic_cow
Engager

Worked like a charm. Thank you.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...