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!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...