All Apps and Add-ons

Rename splunk installation directory

cubeeu
Engager

Hello,

I was wondering if it was possible to rename splunk installation directory.
I have several splunk instances named like that

/opt/splunk/splunk-search-head/

/opt/splunk/splunk-indexer/

/opt/splunk/splunk-deployer/

In order to automate the install process I would like to rename all those path by : /opt/splunk/splunk/

 

Could you please tell me if it is possible and how to do so without breaking everything ?

 

Regards

Matthieu

Labels (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @cubeeu,

you have to set the $SPLUNK_HOME environment variable that you can find in $SPLUNK_HOME/etc/splunk-launch.conf.

in other words:

  • stop Splunk on the server,
  • change $SPLUNK_HOME in splunk-launch.conf,
  • rename the Splunk folder,
  • restart Splunk.

Ciao.

Giuseppe

0 Karma

isoutamo
SplunkTrust
SplunkTrust
If you are using systemd to start splunk instances you must also update those unit files to point to the correct binary.
f you haven't updated those manually then just disable + enable boot start as normally to update those.
And if not use systemd then you must do it for init.d version of startup scripts.
r. Ismo
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 ...