Splunk Enterprise

resync commands

Bisho-Fouad
Explorer

messages shows the below:
Search head cluster member A is having problems pulling configurations from the search head cluster captain B. Changes from the other members are not replicating to this member, and changes on this member are not replicating to other members. Consider performing a destructive configuration resync on this search head cluster member.

any idea regarding the resync commands ??

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

A Google search for "destructive configuration resync" finds this in Docs: https://docs.splunk.com/Documentation/Splunk/9.2.1/DistSearch/HowconfrepoworksinSHC#Why_a_recovering...

---
If this reply helps you, Karma would be appreciated.
0 Karma

deepakc
Builder

This is the command if using Linux - /opt/splunk/bin/splunk resync shcluster-replicated-config (Run this on other SHC members – not captain)  

Check the status first, runs on one of the SHC members

/opt/splunk/bin/splunk show shcluster-status

But might be worth trying a rolling restart and see if that helps, looks like the /var/run folder on the captain is having some kind of issue. Check Disk Space as well. du -sh /opt/splunk/var/run to get the size of the folder.

Rolling restart command = /opt/splunk/bin/splunk rolling-restart shcluster-members from one of the members

Monitor the rolling restart /opt/splunk/bin/splunk rolling-restart shcluster-members  -status 1

The captain may change – so observe – you can change the captain back to original

/opt/splunk/bin/splunk transfer shcluster-captain -mgmt_uri <your SHC Captain>


If this is production, then factor in maintenance window or do it when least busy for users, as it will be somewhat disruptive for searches, until it's resolved.

But it It's worth going through the previous answers for this issue, the commands and various steps. Ensure you have backups and plan the steps for the procedure. At minimum /opt/splunk/etc which contains the configuration.


https://community.splunk.com/t5/Deployment-Architecture/How-to-resolve-error-quot-Error-pulling-conf...


https://community.splunk.com/t5/Deployment-Architecture/How-do-I-fix-quot-splunk-resync-shcluster-re...

0 Karma
Get Updates on the Splunk Community!

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...

Alerting Best Practices: How to Create Good Detectors

At their best, detectors and the alerts they trigger notify teams when applications aren’t performing as ...

Discover Powerful New Features in Splunk Cloud Platform: Enhanced Analytics, ...

Hey Splunky people! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2408. In this ...