/splunk-platform:splunk-search-head-cluster-setupfrom Splunk Platform
Bootstraps and operates Splunk Enterprise Search Head Clusters: bootstrap, deployer bundle push, rolling restart, captain transfer, member management, KV Store replication troubleshooting, standalone-to-SHC migration, and failure-mode runbooks.
Ships in Splunk Platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Tool or access | Purpose | Verify |
|---|---|---|
| Bash and Python 3 | Run bundled setup and validation helpers | bash --version && python3 --version |
| Required product/platform access | Inspect or configure the selected target | Complete the documented preflight |
| Credential files for live modes | Keep secrets out of chat | Verify paths only |
┌───────────┐ ┌───────────────┐ ┌───────────────┐ ┌─────────────────┐
│ Preflight │ → │ Render/review │ → │ Apply/handoff │ → │ Validate evidence │
└───────────┘ └───────────────┘ └───────────────┘ └─────────────────┘
Follow the documented read-only or render-first path whenever it is available. This skill does not imply permission to mutate live systems. Require explicit apply flags, protected credentials, and operator review for state changes.
Inspect the supported setup modes before selecting one:
bash source-repository automation (not bundled) --help
Expected output: usage, supported modes, and required arguments are displayed without changing the target environment.
Inspect validation modes before running completion checks:
bash source-repository automation (not bundled) --help
Expected output: offline, live, and completion options are displayed when the skill supports them; help exits without mutation.
| Issue | Cause | Resolution |
|---|---|---|
| Preflight fails | A required tool or access path is missing | Resolve it before rendering or applying |
| Rendered assets are incomplete | Required non-secret inputs are absent | Complete intake and render again |
| Apply is blocked | Review, credentials, or explicit acceptance is missing | Use the documented handoff |
| Validation is incomplete | Live evidence is unavailable | Record the gap and keep completion open |
This skill sits above
skills/splunk-enterprise-host-setup,
which still owns per-host Splunk Enterprise install and upgrade. This skill
owns multi-host SHC orchestration: the deployer, the member cluster, and the
KV Store replication tier.
--phase transfer-captain.port 8191 and its own
replication_factor (configurable independently of SHC RF).splunk-indexer-cluster-setup
for the indexer-side bundle; this skill owns only the SHC deployer bundle.Never paste secrets into chat.
template.example for the non-secret intake worksheet (deployer URI,
member URIs, SHC label, RF, KV Store RF, ES placement toggle).bash portable local helper /tmp/splunk_admin_password
bash portable local helper /tmp/splunk_shc_secret
The SHC pass4SymmKey ($SHC_SECRET) is distinct from the indexer cluster
$IDXC_SECRET and the license manager pass4SymmKey.
Bootstrap a 3-member SHC (deployer + 3 members):
bash source-repository automation (not bundled) \
--phase render \
--shc-label prod_shc \
--deployer-host deployer01.example.com \
--member-hosts sh01.example.com,sh02.example.com,sh03.example.com \
--replication-factor 3 \
--kvstore-replication-factor 3
Push the deployer bundle (validates, then applies):
bash source-repository automation (not bundled) \
--phase bundle-apply \
--deployer-host deployer01.example.com \
--admin-password-file /tmp/splunk_admin_password
Bundle CLI helpers require a pre-existing local splunk login session for the
Splunk OS user on the deployer. They never expand an admin password into
-auth.
Searchable rolling restart with health-check loop:
bash source-repository automation (not bundled) \
--phase rolling-restart \
--rolling-restart-mode searchable \
--captain-uri https://sh01.example.com:8089 \
--deployer-host deployer01.example.com \
--admin-password-file /tmp/splunk_admin_password
Transfer the SHC captain:
bash source-repository automation (not bundled) \
--phase transfer-captain \
--captain-uri https://sh01.example.com:8089 \
--target-captain-uri https://sh02.example.com:8089 \
--admin-password-file /tmp/splunk_admin_password
Add a new member to an existing SHC:
bash source-repository automation (not bundled) \
--phase add-member \
--deployer-host deployer01.example.com \
--new-member-host sh04.example.com \
--shc-secret-file /tmp/splunk_shc_secret \
--admin-password-file /tmp/splunk_admin_password
Decommission a member from the SHC:
bash source-repository automation (not bundled) \
--phase decommission-member \
--captain-uri https://sh01.example.com:8089 \
--member-guid '<guid-from-shcluster-members>' \
--admin-password-file /tmp/splunk_admin_password
Check KV Store replication status:
bash source-repository automation (not bundled) \
--phase kvstore-status \
--captain-uri https://sh01.example.com:8089 \
--admin-password-file /tmp/splunk_admin_password
Migrate a standalone search head to SHC:
bash source-repository automation (not bundled) \
--phase migrate-standalone-to-shc \
--existing-sh-host sh01.example.com \
--deployer-host deployer01.example.com \
--additional-member-hosts sh02.example.com,sh03.example.com \
--shc-label prod_shc \
--shc-secret-file /tmp/splunk_shc_secret \
--admin-password-file /tmp/splunk_admin_password
Under splunk-search-head-cluster-rendered/shc/:
deployer/server.conf — deployer [shclustering] stanza with
disabled=false, conf_deploy_fetch_url pointing to self, and
pass4SymmKey = $SHC_SECRET.member-<host>/server.conf — per-member [shclustering] with
conf_deploy_fetch_url, shcluster_label, replication_factor,
pass4SymmKey = $SHC_SECRET; and [kvstore] with disabled=false,
replication_factor.bootstrap/sequenced-bootstrap.sh — ordered init: deployer enable →
member init shcluster-config (parallel, one per member) →
bootstrap-shcluster-captain on designated first captain →
quorum-wait loop.bundle/{validate.sh, status.sh, apply.sh, apply-skip-validation.sh, rollback.sh}.restart/{rolling-restart.sh, searchable-rolling-restart.sh, force-searchable.sh, transfer-captain.sh}.members/{add-member.sh, decommission-member.sh, remove-member.sh}.kvstore/{status.sh, reset-status.sh}.migration/{standalone-to-shc.sh, replace-deployer.sh}.runbook-failure-modes.md — split-brain, quorum loss, deployer mismatch,
captain crash loop.validate.sh — splunk show shcluster-status --verbose, REST member count
check, KV Store quorum check, bundle generation drift check.handoffs/{license-peers.txt, es-deployer.txt, monitoring-console.txt}.preflight-report.md — per-phase preflight verdict (member count vs RF,
Splunk version skew, KV Store quorum, deployer reachability).| Phase | Purpose |
|---|---|
render | Produce all config and script assets; no live changes. |
preflight | Check quorum math, version skew, deployer reachability. |
bootstrap | Fail-closed CLI handoff for member initialization and captain bootstrap; secrets are never placed in CLI/SSH argv. |
bundle-validate | splunk validate shcluster-bundle on deployer. |
bundle-status | Show per-member bundle generation and SHA. |
bundle-apply | Validate then apply shcluster-bundle; rolling by default. |
bundle-apply-skip-validation | Bypass bundle validator (requires --accept-skip-validation). |
bundle-rollback | Restore previous bundle from $SPLUNK_HOME/etc/shcluster-deploy-apps/. |
rolling-restart | Restart members one at a time while maintaining search capability. |
transfer-captain | splunk transfer shcluster-captain -mgmt_uri <target> (CLI; no REST endpoint exists). |
add-member | Fail-closed CLI handoff for a non-disruptive join; the admin password and pass4SymmKey remain interactive/file-managed. |
decommission-member | Graceful decommission → GracefulShutdown. |
remove-member | Administrative removal after decommission. |
kvstore-status | splunk show kvstore-status + lag assessment on all members. |
kvstore-reset | splunk kvstore reset-status on a stalled member (requires --accept-kvstore-reset). |
replace-deployer | Migrate the cluster to a new deployer instance. |
migrate-standalone-to-shc | Convert a running standalone SH into an SHC member. |
status | splunk show shcluster-status --verbose formatted snapshot. |
validate | Static + (with --live) live REST health check. |
server.conf [shclustering] (per-member):
[shclustering]
disabled = false
conf_deploy_fetch_url = https://deployer01.example.com:8089
shcluster_label = prod_shc
replication_factor = 3
pass4SymmKey = $SHC_SECRET
heartbeat_timeout = 60
heartbeat_period = 5
restart_inactivity_timeout = 600
server.conf [kvstore] (per-member):
[kvstore]
disabled = false
replication_factor = 3
port = 8191
Deployer server.conf [shclustering]:
[shclustering]
disabled = false
pass4SymmKey = $SHC_SECRET
shcluster_label = prod_shc
The deployer does NOT set conf_deploy_fetch_url pointing to itself — members
do. The deployer hosts $SPLUNK_HOME/etc/shcluster/apps/ for the bundle.
$SPLUNK_HOME/etc/shcluster/apps/ on the
deployer (NOT etc/manager-apps/ — that is the indexer cluster pattern).etc/apps/ on the
deployer and are NOT pushed to members via the bundle.--accept-skip-validation is required to use apply-skip-validation.sh.
Never use it without explicit operator request.app.conf [triggers] requires a restart./services/server/info on each
member and fails if any version differs.< 1000 ms. Warning: 1000–10000 ms. Alarm: > 10000 ms.kvstore-reset (splunk kvstore reset-status) clears stalled replication
state on a specific member and forces a full re-sync. Use only when lag is
stuck and will not self-recover. Requires --accept-kvstore-reset.| Mode | Flag | Search during restart |
|---|---|---|
| Default | --rolling-restart-mode default | Brief outage per member |
| Searchable | --rolling-restart-mode searchable | Searches remain available via other members |
| Forced searchable | --rolling-restart-mode forced | Searchable + skips inactivity timeout check |
Searchable mode: transfers captain before first member restart; each member
waits for captain ACK before proceeding; restart_inactivity_timeout is the
ceiling. For large clusters or slow restarts, tune this value and consider
--rolling-restart-mode forced with explicit acceptance.
| Members | Quorum (N/2+1) | Tolerated failures |
|---|---|---|
| 3 | 2 | 1 |
| 5 | 3 | 2 |
| 7 | 4 | 3 |
The preflight check enforces quorum before any destructive operation
(bundle-apply, rolling-restart, decommission-member).
etc/apps/SplunkEnterpriseSecuritySuite/.etc/shcluster/apps/ for bundle distribution.handoffs/es-deployer.txt rendered file carries the deployer URI and
bundle path for the
splunk-enterprise-security-install
skill.See runbook-failure-modes.md in the rendered tree. Summary:
transfer-shcluster-captain.bundle-apply;
use --accept-skip-validation only if the bundle validator is the blocker.transfer-captain before
investigating and restarting the problematic member.splunk-enterprise-host-setup
before this skill runs.handoffs/license-peers.txt for
splunk-license-manager-setup.handoffs/es-deployer.txt for
splunk-enterprise-security-install.handoffs/monitoring-console.txt for
splunk-monitoring-console-setup.splunk-platform-pki-setup.splunk-platform-restart-orchestrator.pass4SymmKey rotation: rendered configs contain
pass4SymmKey = $SHC_SECRET for operator-managed secret rotation. Rolling
the secret cluster-wide requires a rolling restart with the new value; this
skill does not orchestrate that rotation.splunk-indexer-cluster-setup.splunk-enterprise-host-setup.server.conf field semantics, bundle
trigger classification, KV Store shard model, and rolling restart health-check
details.This Cisco DevNet package preserves the source skill's operational guidance, references, templates, and assets. Source-repository agents/openai.yaml files and repository-coupled scripts/shared helpers are intentionally not bundled. Any omitted automation must be recreated with the target product's supported tools after read-only discovery, exact-target review, explicit approval, rollback preparation, and post-change validation. Keep secrets in local mode-0600 files and never paste them into chat, commands, or logs.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ciscodevnet/skills --plugin splunk-platform87 skills in this plugin
/cisco-appdynamics-setupUse when the user asks about AppDynamics setup, Splunk_TA_AppDynamics, controller connections, analytics connections, or AppDynamics dashboards in Splunk. Automate Cisco Splunk Add-on for AppDynamics (Splunk_TA_AppDynamics) setup and configuration. Creates the AppDynamics index, sets add-on defaults, configures controller and optional analytics connections, enables common input groups, and validates the deployment.
/cisco-asa-ta-setupUse when onboarding or validating Cisco ASA or FTD syslog with Splunk_TA_cisco-asa and SC4S.
/cisco-catalyst-enhanced-netflow-setupOther plugins' skills for the same job