I'm currently trying to create a search head cluster for two search head servers while configuring the deployer server.
[Environment Description] On Search Head Server 1 (10.10.10.5), there are two Splunk daemons installed as follows:
1) Search Head (SH) Path: /opt/splunk_sh // I'm going to designate this daemon as a deployer member. 2) Indexer Cluster Master (CM) Path: /opt/splunk_cm At this point, the account running each daemon on Search Head Server 1 is 'splunk', which is the same. On Search Head Server 2 (10.10.10.6), there is one Splunk daemon installed:
1) Search Head (SH) Path: /opt/splunk_sh // I intend to set this daemon as both a deployer member and a search head captain. Deployer Server (10.10.10.9) 1) Search Head Deploy Path: /opt/splunk So, with two search head servers and a deployer server in place, when I tried to configure the member settings on Search Head Server 1, I encountered the following error after entering the command:
[Command]
/opt/splunk_sh/bin/splunk init shcluster-config -auth <admin:adminpw> -mgmt_uri https://10.10.10.5:8089 -replication_port 8080 -replication_factor 2 -conf_deploy_fetch_url https://10.10.10.9:8089 -secret <<pw>>
[Command Result] WARNING: Server Certificate Hostname Validation is disabled. Please see server.conf/[sslConfig]/cliVerifyServerName for details. Can't create directory "/opt/splunk/.splunk": No such file or directory
Please ignore the WARNING as I haven't properly configured the SSL certificate files yet. The problem below is that I'm having difficulty setting the splunk_home path correctly, as indicated by the question title.
While searching through community posts, I tried the following but it didn't work out: Attempt 1) Setting /opt/splunk_sh/etc/splunk-launch.conf I've already set SPLUNK_HOME=/opt/splunk_sh in this conf file when installing the two daemons.
Now, I'm not sure what to do next. Please help me out.
... View more