Getting Data In

Moving splunk from one directory to another in Windows

cboillot
Contributor

We have several servers where the Universal Forwarder has been installed to the wrong drive/directory. During our upgrade window, we are wanting to move these installations to the correct drive/directory.

What is the best way to go about this without losing or duplicating data?

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi cboillot,
the best way to proceed I think is the following:

  • stop Splunk on Forwarder
  • copy etc directory in a safe directory
  • uninstall Splunk Forwardser from the wrong directory
  • install the same version of Splunk Forwarder into the correct directory
  • stop Splunk
  • copy the saved etc directory on the new etc directory
  • Start Splunk

Bye.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi cboillot,
the best way to proceed I think is the following:

  • stop Splunk on Forwarder
  • copy etc directory in a safe directory
  • uninstall Splunk Forwardser from the wrong directory
  • install the same version of Splunk Forwarder into the correct directory
  • stop Splunk
  • copy the saved etc directory on the new etc directory
  • Start Splunk

Bye.
Giuseppe

0 Karma

cboillot
Contributor

Thank you. Something like this is what I was figuring we would have to do.

I am assuming that it would be best to upgrade the forwarder first, then move it. Would you agree?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi cboillot,
it's the same.
the important is that, when you copy the etc directory, you have the same version both in old and new installation.
Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...