One or more indexers can display as Down, or repeatedly transition between Batch Adding, Pending, and Down in the Cluster Manager page when it cannot register with the cluster.
In Splunk Web, set the search time range to include when the peer first failed to join. Search the affected peer's splunkd.log for the registration rejection
index=_internal source=*splunkd.log* <log message to search>
Example
index=_internal source=*splunkd.log* "Failed to register with cluster master"
Step 1
---------
On IDX:
Check splunkd.log for messages indicating there is a standalone bucket. Events will look like the one below:
WARN CMSlave [39846 indexerPipe] - Failed to register with cluster master reason: failed method=POST path=/services/cluster/master/peers/?output_mode=json manager=X.X.X.X:8089 rv=0 gotConnectionError=0 gotUnexpectedStatusCode=1 actual_response_code=500 expected_response_code=2xx status_line="Internal Server Error" socket_error="No error" remote_error=Cannot add peer=X.X.X.X mgmtport=8089 (reason: This peer re-added a clustered bucket as standalone and is rejected from joining the cluster)
Step 2
---------
On CM:
The cluster manager will have an event like the one below in splunkd.log:
ERROR CMMaster [10733 CMAddPeerWorker-2] - A clustered bucket cannot be re-added as standalone by peer guid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx bid= iis~480~xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
Below are the details from the standalone bucket which were collected from the event above:
Host -> guid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
bid -> iis~480
The GUID is a unique identifier on any Splunk instance. Use this to find out which indexer has the standalone bucket.
Step 3
---------
Access the problematic indexer, and go to path: /opt/splunk/var/lib/splunk/iis/db
In this example, "db_1691653658_1691653618_480" is a standalone bucket. It is missing a GUID on the end of the bucket folder name.
Note,
[+] standalone buckets name:
i.e. db_1550812574_1550720467_53
[+] Cluster buckets name:
i.e. db_1550812574_1550720467_53_C199873F-6E72-43D8-B54F-554750ACE904
mv db_<newest_time><oldest_time><bucketid> db_<newest_time><oldest_time><bucketid>_<guid>
rm $SPLUNK_DB/<index>/db/.bucketManifest
What if there are huge number of standalone buckets, and difficult to rename them one by one? Is there a script to rename them?
Yes, here is a drafted script. Please test in a lab before run it in Prod env.
▶ In Windows (Run Powershell as Administrator)
This script will find all directories that match the pattern db_\d*_\d*_\d* within the specified path and rename them by appending the specified UUID.
# Define the base path
$basePath = "C:\opt\splunk\var\lib\splunk"# Find directories matching the pattern
$directories = Get-ChildItem -Path $basePath -Recurse -Directory -Filter "db*" |
Where-Object { $_.Name -match "^db_\d+_\d+_\d+$" }# Define the UUID to append
$uuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"# Rename each directory
foreach ($dir in $directories) {
$newName = "$($dir.FullName)_$uuid"
Rename-Item -Path $dir.FullName -NewName $newName
}# Output the renamed directories
$directories | ForEach-Object { "$($_.FullName)$uuid" }
Example:

▶ In Linux
This script will find all directories that match the pattern db_\d*_\d*_\d* within the specified path and rename them by appending the specified UUID.
#!/bin/bash# Define the base path
base_path="/opt/splunk/var/lib/splunk"# Define the UUID to append
uuid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"# Find directories matching the pattern and rename them
find "$base_path" -type d -name "db*" | grep -P "db_\d*_\d*_\d*$" | while read -r dir; do
new_dir="${dir}_${uuid}"
mv "$dir" "$new_dir"
echo "Renamed $dir to $new_dir"
done
1. Create the script file: Create a new file, e.g., rename_dirs.sh, and paste the script into it.
2. Make the script executable: Run the following command to make the script executable.
chmod +x rename_dirs.sh
3. Run the script: Execute the script.
./rename_dirs.sh
Example Output
Renamed /opt/splunk/var/lib/splunk/some_index/db_1234_5678_91011 to /opt/splunk/var/lib/splunk/some_index/db_1234_5678_91011_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Renamed /opt/splunk/var/lib/splunk/another_index/db_1111_2222_3333 to /opt/splunk/var/lib/splunk/another_index/db_1111_2222_333_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
When the script is run, it will output the renaming process.
For more information follow this article:
Cluster Manager Crashes - CMAddPeerWorker
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |