if someone request to change the splunk installation folder:
1. Is it possible to just move and everything works normal?
2. what should I keep in mind? or exactly what should I do in a step by step?
the truth worries me a lot
As I see it, it is as if they asked me to move a program in windows from C to a D partition and hope that it continues to work normally and obviously that will not happen
1. I entered the bin folder and stopped the splunk service with the command ./splunk stop
2. I moved splunk from opt which is the default path to a new folder that I have created in the root
3. I entered the new folder where I have moved the splunk folder, I entered the bin folder and started the service again with ./splunk start
In my case it worked 😃
Note: this process was under linux accessing by ssh
1. I entered the bin folder and stopped the splunk service with the command ./splunk stop
2. I moved splunk from opt which is the default path to a new folder that I have created in the root
3. I entered the new folder where I have moved the splunk folder, I entered the bin folder and started the service again with ./splunk start
In my case it worked 😃
Note: this process was under linux accessing by ssh
I have stopped the service from bin folder using ./splunk stop then i moved the content of the install from the first folder to the second folder and i get an error message
root@index:/xxx/splunk/splunk/bin# ./splunk start
Splunk> CSI: Logfiles.
Checking prerequisites...
Checking http port [8000]: open
Checking mgmt port [8089]: open
Checking appserver port [127.0.0.1:8065]: open
Checking kvstore port [8191]: open
Checking configuration... Done.
The certificate generation script did not generate the expected certificate file:/opt/splunk/splunk/etc/auth/mycerts/myNewServerCertificate.pem. Splunkd port communication will not work.
SSL certificate generation failed.
1. Is it possible to just move and everything works normal?
nope, after installing Splunk or any application, moving the installation folder is not a good idea at all.
before installing the splunk (or any app), choose the installation folder as per your choice.
2. what should I keep in mind? or exactly what should I do in a step by step?
The Windows installer gives you two choices: Install with the default installation settings, or configure all settings prior to installing.
When you choose to install with the default settings, the installer does the following:
If you want to change any of these default installation settings, click Customize Options and proceed with the instructions in "Customize Options" in this topic.
I have the doubt for this answer, according to this, in windows it is a bad idea, but in linux if it is viable
thanks for answer so soon
i have splunk installed on linux