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
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...