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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...