Splunk DB Connect Setup
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
- Install or plan DB Connect, configure DBX Java and JDBC drivers, prepare identities, connections, inputs, outputs,
lookups, SQL Explorer, dbxquery, dbxoutput, dbxlookup, DB Connect over Federated Search, or validate DB Connect
topology.
- Preview and review the splunk db connect 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-db-connect-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-db-connect-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 |
Shared add-on completion gate
Whenever this workflow installs, configures, or hands off a registry-listed
Splunk app or add-on, follow the
shared completion gate. Package delivery
alone is not success; capture JDBC input/output data evidence and shipped-view
evidence, or explicit package evidence that no dashboards ship.
Use this skill for Splunk DB Connect (splunk_app_db_connect, Splunkbase app
2686) and the supported Splunk-published JDBC driver add-ons. The default
path is render, preflight, and validate only. Installing packages is explicit
and delegated to splunk-app-install; live DB Connect object mutation is out of
scope for v1.
Safety Rules
- Never ask for database passwords, tokens, wallet passphrases, private keys, or
CyberArk/Vault secrets in chat.
- Never put secrets in argv, specs, environment-variable prefixes, rendered
files, or JDBC URLs.
- Use local chmod-600 secret files or external secret references only.
- Treat DBX encrypted-value prefixes as non-portable local artifacts;
do not paste or render them as identity values.
- Do not deploy DB Connect through Deployment Server.
- Do not install DB Connect on universal forwarders or indexers.
- Do not self-service DB Connect installation on Splunk Cloud Classic; use IDM,
a customer-managed heavy forwarder, or a Splunk Cloud support workflow.
- Treat Splunk Cloud Victoria as a Cloud search-head DB Connect target. Model
customer-managed heavy forwarders as Enterprise runtime hosts paired to Cloud.
- Do not install archived JDBC add-ons unless the spec explicitly opts into
archived driver handling.
- Do not use the automated install handoff for FIPS DB Connect. FIPS requires a
fresh manual installation plan and PKCS12 keystore/truststore handling.
Primary Workflow
- Copy
template.example to a local working spec and fill in only non-secret
values.
- Run a read-only preflight:
bash skills/splunk-db-connect-setup/scripts/setup.sh \
--preflight \
--spec my-db-connect.yaml
- Render and validate the handoff packet:
bash skills/splunk-db-connect-setup/scripts/setup.sh \
--render \
--validate \
--spec my-db-connect.yaml \
--output-dir splunk-db-connect-rendered
The install helper applies supported DBX/Splunk JDBC add-ons. Any requested
archived, custom, or otherwise unsupported driver emits a manual-driver
handoff and makes the install request return nonzero before any package is
installed; a skipped driver is not reported as a completed install.
- If app installation is required, use the explicit install path:
bash skills/splunk-db-connect-setup/scripts/setup.sh \
--install-apps \
--accept-install \
--spec my-db-connect.yaml \
--output-dir splunk-db-connect-rendered
- Apply DBX objects manually or through a future version after reviewing the
rendered
dbx/*.preview files. This v1 skill does not mutate DB Connect
identities, connections, inputs, outputs, or lookups.
Supported Topologies
- Single search head
- Distributed search with a dedicated DBX search head or heavy forwarder
- Search head cluster through the deployer
- Heavy forwarder
- Heavy forwarder HA with etcd planning
- Splunk Cloud Victoria with outbound allowlist planning
- Splunk Cloud Classic through IDM, a customer-managed heavy forwarder, or a
support-managed install path
Required Runtime Checks
Rendered assets include checks for:
- DB Connect app and JDBC add-on installation
- Java
17 or 21 on Enterprise/customer-managed runtimes; Splunk-managed
JRE validation for Splunk Cloud Victoria search heads
- working KV Store
- DBX file permissions
- JDBC driver placement on every DBX instance
- SHC deployer bundle workflow when search head clusters are involved
- Cloud Victoria outbound database connectivity allowlists
- Splunk Cloud custom JDBC driver app skeletons under
lib/dbxdrivers
- index and optional HEC readiness
- REST, btool, SQL Explorer,
dbxquery, dbxoutput, and dbxlookup validation
- DB Connect over Federated Search saved-search handoffs
Read reference.md for driver catalog details, topology notes, Cloud behavior,
security controls, migration notes, and troubleshooting.
1---2name: splunk-db-connect-setup3description: Use when the user asks to install or plan DB Connect, configure DBX Java and JDBC drivers, prepare identities, connections, inputs, outputs, lookups, SQL Explorer, dbxquery, dbxoutput, dbxlookup, DB Connect over Federated Search, or validate DB Connect topology. Render, preflight, validate, and hand off production-safe Splunk DB Connect JDBC ingestion, lookup, enrichment, and export assets for Splunk Platform.4---56# Splunk DB Connect Setup78## Prerequisites910| Tool or access | Purpose | Verify |11|---|---|---|12| Bash and Python 3 | Run bundled setup and validation helpers | `bash --version && python3 --version` |13| Required product/platform access | Inspect or configure the selected target | Complete the documented preflight |14| Credential files for live modes | Keep secrets out of chat | Verify paths only |1516## Workflow Overview1718```text19┌───────────┐ ┌───────────────┐ ┌───────────────┐ ┌─────────────────┐20│ Preflight │ → │ Render/review │ → │ Apply/handoff │ → │ Validate evidence │21└───────────┘ └───────────────┘ └───────────────┘ └─────────────────┘22```2324## When to Activate2526- Install or plan DB Connect, configure DBX Java and JDBC drivers, prepare identities, connections, inputs, outputs,27 lookups, SQL Explorer, dbxquery, dbxoutput, dbxlookup, DB Connect over Federated Search, or validate DB Connect28 topology.29- Preview and review the splunk db connect setup workflow before any live apply phase.30- Diagnose failed prerequisites, generated assets, configuration, or validation evidence.3132## Scope3334Follow the documented read-only or render-first path whenever it is available.35This skill does not imply permission to mutate live systems. Require explicit36apply flags, protected credentials, and operator review for state changes.3738## Examples3940Inspect the supported setup modes before selecting one:4142```bash43bash skills/splunk-db-connect-setup/scripts/setup.sh --help44```4546Expected output: usage, supported modes, and required arguments are displayed47without changing the target environment.4849Inspect validation modes before running completion checks:5051```bash52bash skills/splunk-db-connect-setup/scripts/validate.sh --help53```5455Expected output: offline, live, and completion options are displayed when the56skill supports them; help exits without mutation.5758## Troubleshooting5960| Issue | Cause | Resolution |61|---|---|---|62| Preflight fails | A required tool or access path is missing | Resolve it before rendering or applying |63| Rendered assets are incomplete | Required non-secret inputs are absent | Complete intake and render again |64| Apply is blocked | Review, credentials, or explicit acceptance is missing | Use the documented handoff |65| Validation is incomplete | Live evidence is unavailable | Record the gap and keep completion open |6667## Shared add-on completion gate6869Whenever this workflow installs, configures, or hands off a registry-listed70Splunk app or add-on, follow the71[shared completion gate](../shared/ta_completion_gate.md). Package delivery72alone is not success; capture JDBC input/output data evidence and shipped-view73evidence, or explicit package evidence that no dashboards ship.7475Use this skill for Splunk DB Connect (`splunk_app_db_connect`, Splunkbase app76`2686`) and the supported Splunk-published JDBC driver add-ons. The default77path is render, preflight, and validate only. Installing packages is explicit78and delegated to `splunk-app-install`; live DB Connect object mutation is out of79scope for v1.8081## Safety Rules8283- Never ask for database passwords, tokens, wallet passphrases, private keys, or84 CyberArk/Vault secrets in chat.85- Never put secrets in argv, specs, environment-variable prefixes, rendered86 files, or JDBC URLs.87- Use local chmod-600 secret files or external secret references only.88- Treat DBX encrypted-value prefixes as non-portable local artifacts;89 do not paste or render them as identity values.90- Do not deploy DB Connect through Deployment Server.91- Do not install DB Connect on universal forwarders or indexers.92- Do not self-service DB Connect installation on Splunk Cloud Classic; use IDM,93 a customer-managed heavy forwarder, or a Splunk Cloud support workflow.94- Treat Splunk Cloud Victoria as a Cloud search-head DB Connect target. Model95 customer-managed heavy forwarders as Enterprise runtime hosts paired to Cloud.96- Do not install archived JDBC add-ons unless the spec explicitly opts into97 archived driver handling.98- Do not use the automated install handoff for FIPS DB Connect. FIPS requires a99 fresh manual installation plan and PKCS12 keystore/truststore handling.100101## Primary Workflow1021031. Copy `template.example` to a local working spec and fill in only non-secret104 values.1052. Run a read-only preflight:106107```bash108bash skills/splunk-db-connect-setup/scripts/setup.sh \109 --preflight \110 --spec my-db-connect.yaml111```1121133. Render and validate the handoff packet:114115```bash116bash skills/splunk-db-connect-setup/scripts/setup.sh \117 --render \118 --validate \119 --spec my-db-connect.yaml \120 --output-dir splunk-db-connect-rendered121```122123The install helper applies supported DBX/Splunk JDBC add-ons. Any requested124archived, custom, or otherwise unsupported driver emits a manual-driver125handoff and makes the install request return nonzero before any package is126installed; a skipped driver is not reported as a completed install.1271284. If app installation is required, use the explicit install path:129130```bash131bash skills/splunk-db-connect-setup/scripts/setup.sh \132 --install-apps \133 --accept-install \134 --spec my-db-connect.yaml \135 --output-dir splunk-db-connect-rendered136```1371385. Apply DBX objects manually or through a future version after reviewing the139 rendered `dbx/*.preview` files. This v1 skill does not mutate DB Connect140 identities, connections, inputs, outputs, or lookups.141142## Supported Topologies143144- Single search head145- Distributed search with a dedicated DBX search head or heavy forwarder146- Search head cluster through the deployer147- Heavy forwarder148- Heavy forwarder HA with etcd planning149- Splunk Cloud Victoria with outbound allowlist planning150- Splunk Cloud Classic through IDM, a customer-managed heavy forwarder, or a151 support-managed install path152153## Required Runtime Checks154155Rendered assets include checks for:156157- DB Connect app and JDBC add-on installation158- Java `17` or `21` on Enterprise/customer-managed runtimes; Splunk-managed159 JRE validation for Splunk Cloud Victoria search heads160- working KV Store161- DBX file permissions162- JDBC driver placement on every DBX instance163- SHC deployer bundle workflow when search head clusters are involved164- Cloud Victoria outbound database connectivity allowlists165- Splunk Cloud custom JDBC driver app skeletons under `lib/dbxdrivers`166- index and optional HEC readiness167- REST, btool, SQL Explorer, `dbxquery`, `dbxoutput`, and `dbxlookup` validation168- DB Connect over Federated Search saved-search handoffs169170Read `reference.md` for driver catalog details, topology notes, Cloud behavior,171security controls, migration notes, and troubleshooting.