Deployment Architecture

Search head fails to be added back to the Search Head Cluster after performing a cleanup

keio_splunk
Splunk Employee
Splunk Employee

After performing "./splunk clean all" on one of the search head, we are having issue to add the search head back to the search head cluster.

Permission error message is reported when adding the search head back to the cluster:

./splunk add shcluster-member -current_member_uri URI:

You (user=admin) do not have permission to perform this operation (requires capability: edit_search_head_clustering).

0 Karma
1 Solution

keio_splunk
Splunk Employee
Splunk Employee

The $SPLUNK_HOME/etc/passwd file is deleted after performing a "clean all" on the Splunk search head and there is no administrator credential to access the Splunk instance. We will need to restore back the $SPLUNK_HOME/etc/passwd file by copying it over from an existing search or generate a new passwd file by creating the user-seed.conf. Refer to: https://docs.splunk.com/Documentation/Splunk/latest/Security/Secureyouradminaccount#Create_admin_cre...

Add the search head cluster member after the passwd file has been restored:

:/opt/splunk/bin# ./splunk add shcluster-member -current_member_uri URI:

View solution in original post

0 Karma

keio_splunk
Splunk Employee
Splunk Employee

The $SPLUNK_HOME/etc/passwd file is deleted after performing a "clean all" on the Splunk search head and there is no administrator credential to access the Splunk instance. We will need to restore back the $SPLUNK_HOME/etc/passwd file by copying it over from an existing search or generate a new passwd file by creating the user-seed.conf. Refer to: https://docs.splunk.com/Documentation/Splunk/latest/Security/Secureyouradminaccount#Create_admin_cre...

Add the search head cluster member after the passwd file has been restored:

:/opt/splunk/bin# ./splunk add shcluster-member -current_member_uri URI:

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...