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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...