I have problem with change instance name in Splunk.
In conf files serverName variable is change to new hostname and splunk is restarted.
Everything is ok, but in, for ex. "Resource Usage: Instance" in "Instance" drop down list i see old hostname.
I try to find this in all Splunk files (db too) and find it only in \var\lib\splunk\kvstore\mongo\local.0 file.
What can i do to fix this problem?
I already edit this files.
But, i fix this problem in other way...
In Settings > General Setup i edit Instance (Actions > Edit > Edit Server Roles) and for ex. KV Store for a while.
After this in Resource Usage etc. i see correct Instance name and stats display correctly now (before fix not).
if you change the hostname, you may want to edit the splunk configurations to update it.
the default stanza used for all inputs
check for host=something setting that may be the old hostname
there is a hostname setting, used for the server name (for deployment client, or metrics)
try in etc/system/local/inputs.conf
change the host = oldName to newName
hope it helps