splunk-kvstore
# splunk-kvstore
What this skill does
# splunk-kvstore
Interaction with App Key Value Store for persistent metadata.
## Purpose
Create and manage KV store collections and records for persistent data storage.
## Risk Levels
| Operation | Risk | Notes |
|-----------|------|-------|
| List collections | - | Read-only |
| Get record | - | Read-only |
| Query collection | - | Read-only |
| Insert record | ⚠️ | Easily reversible |
| Create collection | ⚠️ | Easily reversible |
| Update record | ⚠️ | Previous value lost |
| Delete record | ⚠️⚠️ | Data loss, may be in backups |
| Delete collection | ⚠️⚠️⚠️ | **IRREVERSIBLE** - all data lost |
## Triggers
- "kvstore", "collection", "key-value"
- "persist", "store"
## CLI Commands
| Command | Description |
|---------|-------------|
| `kvstore list` | List collections in app |
| `kvstore create <name>` | Create KV store collection |
| `kvstore delete <name>` | Delete collection (**IRREVERSIBLE**) |
| `kvstore truncate <collection>` | Delete all records in collection |
| `kvstore insert <collection>` | Insert record into collection |
| `kvstore batch-insert <collection>` | Insert multiple records at once |
| `kvstore get <collection> <key>` | Get record by _key |
| `kvstore update <collection> <key>` | Update existing record |
| `kvstore delete-record <collection> <key>` | Delete individual record by _key |
| `kvstore query <collection>` | Query with filters |
## Examples
```bash
# Show help
splunk-as kvstore --help
# List collections
splunk-as kvstore list --app search
# Create collection
splunk-as kvstore create my_collection --app search
# Insert record
splunk-as kvstore insert my_collection '{"name": "test", "value": 123}' --app search
# Get record by _key
splunk-as kvstore get my_collection abc123 --app search
# Query collection with filters
splunk-as kvstore query my_collection --query '{"name": "test"}' --app search
# Update record by _key
splunk-as kvstore update my_collection abc123 '{"name": "updated"}' --app search
# Delete individual record by _key (use delete-record, not delete)
splunk-as kvstore delete-record my_collection abc123 --app search
# Truncate collection (delete all records, keep collection)
splunk-as kvstore truncate my_collection --app search
# Batch insert multiple records from JSON file
splunk-as kvstore batch-insert my_collection records.json --app search
# Delete collection (IRREVERSIBLE - removes collection and all records)
splunk-as kvstore delete my_collection --app search --force
```
## Command Terminology
| Command | Target | Description |
|---------|--------|-------------|
| `delete-record` | Single record | Deletes one record by its `_key` |
| `delete` | Collection | Deletes entire collection and all records (**IRREVERSIBLE**) |
## API Endpoints
- `GET/POST/DELETE /services/storage/collections/config` - Collections
- `GET/POST /services/storage/collections/data/{collection}` - Records
- `GET/PUT/DELETE /services/storage/collections/data/{collection}/{key}` - Record
## SPL Patterns
```spl
| inputlookup collection_name
| outputlookup collection_name append=true
```
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.