Configure peer nodes with the CLI
Read this first
Before reading this topic, see:
- Configure and manage the indexer cluster with the CLI. This topic explains the basics of cluster configuration with the CLI. It provides details on issues that are common to all indexer cluster node types.
Enable a peer node
The following example shows the basic settings that you typically configure when enabling a peer node. The configuration attributes correspond to fields on the Enable clustering page of Splunk Web.
To enable an instance as a peer node, set
mode to "peer". You also need to specify
master_uri, which specifies the cluster's manager node, and
replication_port. In addition, you must specify the cluster-wide security key (
splunk edit cluster-config -mode peer -master_uri https://10.160.31.200:8089 -replication_port 9887 -secret your_key splunk restart
-secret flag modifies the
pass4SymmKey setting in the
[clustering] stanza of
Edit the peer settings
You can also use the CLI to edit the configuration later. Use the
splunk edit cluster-config command, the same command that you use to enable the peer initially.
Refer to the CLI clustering help, along with the server.conf specification file, for the list of configurable settings.
Configure peer nodes with server.conf
Manage common configurations across all peers
This documentation applies to the following versions of Splunk® Enterprise: 8.1.0, 8.1.1, 8.1.2, 8.1.3, 8.1.4, 8.1.5, 8.1.6, 8.1.7, 8.1.8, 8.1.9, 8.1.10