Show answerHide answer
Correct answer: A splunk edit cluster-config -mode searchhead -manager_uri https://10.0.0.1:8089 -secret changeme
Explanation
Explanation:To add a search head to an indexer cluster in a single-site deployment, the search head must be configured to communicate with the Cluster Manager (formerly the master node). This allows it to retrieve the list of indexer peers and distribute search requests appropriately.
The correct command is:
splunk edit cluster-config -mode searchhead -manager_uri https://
Key parameters
* -mode searchhead → Defines the instance as a search head in an indexer cluster
* -manager_uri → Specifies the URI of the Cluster Manager (master node)
* -secret → Shared secret used for secure communication with the cluster
After executing this command, Splunk must be restarted. Once restarted, the search head will:
* Retrieve the list of peer indexers from the Cluster Manager
* Dispatch search jobs across cluster peers
* Respect cluster search affinity and bucket distribution rules
Why the other options are incorrect
B — splunk edit cluster-config -mode peer -manager_uri ...
This configures an indexer peer node, not a search head. Peers are responsible for indexing and storing data, so using this mode for a search head is incorrect.
C — splunk add cluster-manager -manager_uri ... -secret ...
This is an invalid command. Splunk does not support add cluster-manager. The correct command is edit cluster-config.
D — splunk add cluster-manager -mode searchhead ...
This option is incorrect because the add cluster-manager command does not exist, and combining it with -mode searchhead is syntactically invalid in Splunk CLI.
Reference
Splunk Docs – Add a search head to an indexer cluster
“Run splunk edit cluster-config -mode searchhead -manager_uri
Splunk Enterprise Certified Architect Lab Guide – Indexer Clustering
“Search heads join the cluster using edit cluster-config with -mode searchhead, not -mode peer.”
