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!

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...

Leverage Cisco Talos Threat Intelligence Across Splunk Security Products

Leverage Cisco Talos Threat Intelligence Across Splunk Security Products   Security Edition   Have you ...

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience Tune in to What’s New in Splunk Enterprise ...