Splunk KV Store Admin Setup
SkillFiles & storage"Use when the user asks to back up or restore the KV Store, migrate the KV Store storage engine, upgrade
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Splunk KV Store Admin Setup skill
What this skill tells your AI
The instructions your AI receives, as published by chambear2809/splunk-cisco-skills in skills/splunk-kvstore-admin-setup/SKILL.md and read by ahel’s review.
Prerequisites
| 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 |
Workflow Overview
┌───────────┐ ┌───────────────┐ ┌───────────────┐ ┌─────────────────┐
│ Preflight │ → │ Render/review │ → │ Apply/handoff │ → │ Validate evidence │
└───────────┘ └───────────────┘ └───────────────┘ └─────────────────┘
When to Activate
- Back up or restore the KV Store, migrate the KV Store storage engine, upgrade the KV Store server version, reset or clean the KV Store, define a KV Store collection or lookup, or recover KV Store on an SHC.
- Preview and review the splunk kvstore admin setup workflow before any live apply phase.
- Diagnose failed prerequisites, generated assets, configuration, or validation evidence.
Scope
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.
Examples
Inspect the supported setup modes before selecting one:
bash skills/splunk-kvstore-admin-setup/scripts/setup.sh --help
Expected output: usage, supported modes, and required arguments are displayed without changing the target environment.
Inspect validation modes before running completion checks:
bash skills/splunk-kvstore-admin-setup/scripts/validate.sh --help
Expected output: offline, live, and completion options are displayed when the skill supports them; help exits without mutation.
Troubleshooting
| 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 renders and applies Splunk App Key Value Store (KV Store) administration assets. It is render-first because backup, restore, clean, migrate, and upgrade operations change durable state; review the rendered host scripts before applying.
Agent Behavior
Never ask for the Splunk admin password in chat. Lifecycle operations run as
the splunk user on the host after splunk login; collection governance uses the
project credentials file via the shared helper. Restore and clean are
destructive and refuse to run without their acceptance flag.
--platform auto|cloud|enterprise defaults to auto and is resolved before
every apply/all, preflight, or status phase. Managed Splunk Cloud is a hard
handoff for backup, restore, clean, migrate, upgrade, maintenance, and host
status: the wrapper exits 2 before rendering or executing host assets.
Cloud-rendered host scripts independently exit 2 before invoking the CLI.
The only Cloud mutation supported here is collection and lookup definition
governance through the standard Splunk REST configuration endpoints in an
existing, writable app namespace supplied with --app-name.
Read reference.md before any restore, migrate, or upgrade. Always take a
point-in-time backup first.
Splunk Enterprise 10.4 guardrails
Enterprise 10.4 removes legacy MongoDB 4–6 binaries bundled with older KV Store releases. Do not upgrade directly from Splunk 9.x to 10.4; route through 10.0 or 10.2 first so KV Store reaches MongoDB 7+.
On 10.x → 10.4, MongoDB 8 is applied automatically during the Splunk
upgrade. After upgrade, run status.sh or splunk show kvstore-status --verbose
and confirm serverVersion reflects the expected MongoDB 8 train before
collection governance or restore work.
Cloud stacks on doc trains 10.5.2605 and 10.4.2604 inherit the same KV Store behavior on the Splunk-managed side. Splunk operates that lifecycle; customers must use Splunk Support for backup/recovery or engine/version work. Enterprise operators still own the upgrade ladder on self-managed hosts.
Quick Start
Render the lifecycle assets:
bash skills/splunk-kvstore-admin-setup/scripts/setup.sh --topology shc
Take a point-in-time backup live:
bash skills/splunk-kvstore-admin-setup/scripts/setup.sh --platform enterprise \
--phase apply --operation backup --point-in-time true
Restore (destructive, captain on SHC):
bash skills/splunk-kvstore-admin-setup/scripts/setup.sh --platform enterprise \
--phase apply --operation restore \
--backup-archive-name kvdump_2026.tar.gz --accept-kvstore-restore
Define a KV Store collection + lookup definition live via REST:
bash skills/splunk-kvstore-admin-setup/scripts/setup.sh --platform auto \
--phase apply --operation collections \
--collection-name asset_inventory --collection-fields ip:string,risk:number \
--lookup-definition-name asset_inventory_lookup
What It Renders
backup.sh/restore.sh/clean.sh/migrate.sh/upgrade.sh/status.sh/preflight.shserver.confwith optional[kvstore] kvstoreUpgradeOnStartupEnabled = falsecollections.confandtransforms.confKV Store lookup-definition templates
Operations
backup-splunk backup kvstore [-pointInTime true]restore-splunk restore kvstore -archiveName <file>.tar.gz(gated)clean-splunk clean kvstore --local|--cluster(gated)migrate- SHCstart-shcluster-migration kvstore -storageEngine wiredTigerupgrade- SHCstart-shcluster-upgrade kvstore -version <v>collections- write collection + lookup definition via REST
On managed Splunk Cloud, collections is the only live operation. Host
lifecycle operations exit 2 with a Support handoff before any local render
tree or host command is created. Cloud collection apply also verifies that
--app-name identifies an existing writable namespace before mutation. Use
--phase render --platform cloud to review collection/lookup templates and
fail-closed host-script handoffs.
Live standalone migrate and upgrade requests fail with an upgrade-workflow
handoff because those transitions occur during a supported Splunk Enterprise
binary upgrade. --operation none is render-only and is rejected by apply.
server.conf is a rendered coordination artifact; this skill does not install
that file automatically. Collection REST apply writes replicate and every
declared field.<name> type.
SHC migration defaults to --migrate-dry-run true; that successful operation
does not claim that migration was applied. Actual migration requires
--migrate-dry-run false --accept-kvstore-migrate, and server-version upgrade
requires --accept-kvstore-upgrade. Rendered destructive scripts also require
the acceptance environment set by the wrapper.
Hand SHC replication health, captain transfer, and KV Store reset coordination
to splunk-search-head-cluster-setup.
Signals
- GitHub stars
- 37
- Forks
- 8
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
splunk-kvstore-admin-setup- Source
- github.com/chambear2809/splunk-cisco-skills