Installation

Need to move Splunk install dir

rhall2016
New Member

Need to move /opt/splunk to /data/splunk due to disk space issues. What is the best way forward with the least downtime?

Tags (1)
0 Karma

woodcock
Esteemed Legend

The safest way is to:
Add the disk space.
Shut down splunk.
Physically move splunk.
Create a soft link from the old home to the new home (you have no idea how many things are expecting Splunk to be where it used to be).
Start splunk.

0 Karma

rhall2016
New Member

I'm going to test this tonight and see what I get. sym-links slipped my mind.

0 Karma

woodcock
Esteemed Legend

It is super cheap insurance. People forget to check cron and logrotate and all of those other things that might be touching Splunk from the outside.

0 Karma

gcusello
SplunkTrust
SplunkTrust
0 Karma

rhall2016
New Member

I've read both of those. The details I need is do I leave just a copy of splunk-launch.conf in /opt/splunk/etc and can delete the rest once moved in order to free up the space needed? Is there anything else that is need in the old dir once I change $SPLUNK_HOME to the new dir?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi rhall2016,
you have to:

  • add the needed disk space,
  • stop Splunk,
  • move all the splunk folder in the new location,
  • edit and change $SPLUNK_HOME and $SPLUNK_DB in /opt/splunk/server/etc/splunk-launch.conf,
  • check if in your apps there are some absolute paths in inputs.conf and eventually update them,
  • if you have the automatic start scripts, update them,
  • start Splunk.

You don't need to leave anything in Splunk old folder.

Bye.
Giuseppe

0 Karma

rhall2016
New Member

Tracking now. Thanks for the input.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

    Thursday, June 25, 2026  |  11AM PDT / 2PM EDT  Duration: 1 Hour (Includes live Q&A) Register to ...

Analytics Workspace deprecation

As of Splunk Cloud Platform 10.4.2604 and Splunk Enterprise 10.4, Analytics Workspace is now deprecated. ...

Splunk Developer Day Recap: Building, Publishing, and Growing on the Splunk Platform

Splunk Developer Day brought the Splunk developer community together for a practical look at what it means to ...