Installation

move Splunk install from one directory to another

seanlon11
Path Finder

On my Unix system:

I have installed Splunk to: /opt/splunk/

However, now I'd like to move it to: /opt/splunk/server

Can I just do move the files from the original location to the 2nd location? Or will I have to do an entirely new install to the new location?

Thanks, Sean

Tags (1)
0 Karma
1 Solution

Chris_R_
Splunk Employee
Splunk Employee

Moving directories in this way will work since all files necessary for splunk to funciton are contained under the working directory. If your environment variables need to be manually set, make the edits to $SPLUNK_HOME And $SPLUNK_DB in /opt/splunk/server/etc/splunk-launch.conf

View solution in original post

Chris_R_
Splunk Employee
Splunk Employee

Moving directories in this way will work since all files necessary for splunk to funciton are contained under the working directory. If your environment variables need to be manually set, make the edits to $SPLUNK_HOME And $SPLUNK_DB in /opt/splunk/server/etc/splunk-launch.conf

dwaddle
SplunkTrust
SplunkTrust

If you are using the RPM-based installer be careful, as doing upgrades after having moved the files from where RPM thinks they are might be more difficult.

Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...