Remove a search peer
You can remove a search peer from a search head through Splunk Web or the CLI. As you might expect, doing so merely removes the search head's knowledge of that search peer; it does not affect the peer itself.
Remove a search peer via Splunk Web
You can remove a search peer from a search head through the Search peers page on the search head's Splunk Web. See View search peer status in Settings.
Note: This only removes the search peer entry from the search head; it does not remove the search head key from the search peer. In most cases, this is not a problem and no further action is needed.
Remove a search peer via the CLI
On the search head, run the
splunk remove search-server command to remove a search peer from the search head:
splunk remove search-server -auth <user>:<password> <host>:<port>
Note the following:
- Use the
-authflag to provide credentials for the search head only.
- <host> is the host name or IP address of the search peer's host machine.
- <port> is the management port of the search peer.
splunk remove search-server -auth admin:password 10.10.10.10:8089
A message indicating success appears after the peer is removed.
In the case of a search head cluster, the peer removal action replicates to all other cluster members only if you have enabled search peer replication. Otherwise, you must remove the search peers from each member individually. For information on enabling search peer replication, see Replicate the search peers across the cluster.
Disable the trust relationship
As an additional step, you can disable the trust relationship between the search peer and the search head. To do this, delete the
trusted.pem file from
$SPLUNK_HOME/etc/auth/distServerKeys/<searchhead_name> on the search peer.
<searchhead_name> is the search head's
serverName, as described in "Manage distributed server names".
This step is usually unnecessary.
Create distributed search groups
View search peer status in Settings
This documentation applies to the following versions of Splunk® Enterprise: 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.4.5, 6.4.6, 6.4.7, 6.4.8, 6.4.9, 6.4.10, 6.4.11, 6.5.0, 6.5.1, 6.5.1612 (Splunk Cloud only), 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.6, 6.5.7, 6.5.8, 6.5.9, 6.5.10, 6.6.0, 6.6.1, 6.6.2, 6.6.3, 6.6.4, 6.6.5, 6.6.6, 6.6.7, 6.6.8, 6.6.9, 6.6.10, 6.6.11, 6.6.12, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.0.6, 7.0.7, 7.0.8, 7.0.9, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.1.6, 7.2.0, 7.2.1, 7.2.2, 7.2.3, 7.2.4, 7.2.5