Use the CLI
To add a search peer, run this command from the search head:
splunk add search-server ://: -auth : -remoteUsername -remotePassword
Note the following:
is the URI scheme: "http" or "https".
is the host name or IP address of the search peer's host machine.
is the management port of the search peer.
Use the -auth flag to provide credentials for the search head.
Use the -remoteUsername and -remotePassword flags for the credentials for the search peer. The
remote credentials must be for an admin-level user on the search peer.
splunk add search-server https://192.168.1.1:8089 -auth admin:password -remoteUsername admin -remotePassword passremote
You must run this command for each search peer that you want to add.
You can refer to the above link.
Hope this help, Thanks !
... View more