Hi,
I'm building a simple dev CentOS VM on my PC to try out clustering configuration and other stuff.
I've used tar -C to install the splunk tgz into different directories, set the web,mgmt,kv and appserver to different ports but when doing ./splunk start/stop/restart it will only apply to the original splunk install.
I've found this old link but it reflects init.d changes and not the new systemd.
appreciate any help configuring this to work.
Many thanks for the guidance Ismo @isoutamo !
For reference here is what I did to make it work. for example if I want to install a second instance called "SH":
1. Under /opt create a directory called SH
2. Install the 2nd (or n-th) instance in a different location using :
tar -zxvf <splunk install tgz file> -C /opt/sh
3. In /opt/sh/splunk/etc duplicate the file splunk-launch.conf.default to splunk-launch.conf
4. edit the file splunk-launch.conf in /opt/sh/splunk/etc to reflect chnages to the SPLUNK_HOME and Splunkd daemon name like so:
# Version 8.0.6 # Modify the following line to suit the location of your Splunk install. # By default, Splunk stores its indexes under SPLUNK_HOME in the |
5. switch to the directory /opt/sh/splunk/bin/ and run
./splunk enable boot-start -systemd-managed 1 (see docs here )
You will see that a splunkdsh.service file was added to /etc/systemd/system
6. Accept the LUA, set admin user and password
7 ./splunk start
change http port, mgmt port, appserver port, kvstore port to different ports since you are on the same IP 🙂
Enjoy !
Many thanks for the guidance Ismo @isoutamo !
For reference here is what I did to make it work. for example if I want to install a second instance called "SH":
1. Under /opt create a directory called SH
2. Install the 2nd (or n-th) instance in a different location using :
tar -zxvf <splunk install tgz file> -C /opt/sh
3. In /opt/sh/splunk/etc duplicate the file splunk-launch.conf.default to splunk-launch.conf
4. edit the file splunk-launch.conf in /opt/sh/splunk/etc to reflect chnages to the SPLUNK_HOME and Splunkd daemon name like so:
# Version 8.0.6 # Modify the following line to suit the location of your Splunk install. # By default, Splunk stores its indexes under SPLUNK_HOME in the |
5. switch to the directory /opt/sh/splunk/bin/ and run
./splunk enable boot-start -systemd-managed 1 (see docs here )
You will see that a splunkdsh.service file was added to /etc/systemd/system
6. Accept the LUA, set admin user and password
7 ./splunk start
change http port, mgmt port, appserver port, kvstore port to different ports since you are on the same IP 🙂
Enjoy !