rpk sql debug bundle
Collect a read-only diagnostic bundle from a Redpanda SQL cluster and write it to a ZIP file. Redpanda Support uses the bundle to troubleshoot Redpanda SQL, which runs only on Redpanda Cloud BYOC clusters.
The bundle contains each node’s configuration, logs, crash reports, resource usage, and metrics samples, plus the cluster topology. It also includes active and recent queries, with SQL text masked unless you pass --include-sql-text raw. Collecting it doesn’t change the cluster. If a node can’t be reached, the bundle still includes the data from the other nodes.
Redpanda Support runs this command from inside a Redpanda SQL pod. It connects to the admin API at localhost:9090 by default and discovers the other nodes from there. The --admin-hosts flag sets a different starting endpoint, but the other nodes are still reached at their in-cluster addresses, so collection from outside the cluster is incomplete.
| This command was introduced in version v26.2.2. |
Flags
| Value | Type | Description |
|---|---|---|
|
stringSlice |
Comma-separated admin API endpoints ( |
|
uint |
Collect a CPU profile of this duration per node (0 = skip). |
|
string |
SQL text in query artifacts: masked|raw. |
|
bool |
Include vmstat in host probes (~1s slower). |
|
duration |
Collect log lines newer than this (0 = server default window). |
|
uint64 |
Max log bytes per node (0 = server default). |
|
duration |
Interval between metrics samples. |
|
uint16 |
Per-node Prometheus metrics port. |
|
int |
Number of metrics samples to take per node (at the interval of |
|
string |
Kubernetes namespace to collect resources from (K8s only; default: the pod’s own namespace). |
|
string |
Output ZIP path. |
|
string |
HTTP Basic password. |
|
duration |
Per-RPC timeout. |
|
bool |
Use HTTPS for admin endpoints. |
|
string |
PEM CA bundle for server verification. |
|
string |
Client certificate for mTLS. |
|
bool |
Skip TLS certificate verification. |
|
string |
Client key for mTLS. |
|
string |
Bearer token (mutually exclusive with |
|
string |
If provided, where to upload the bundle in addition to creating a copy on disk. |
|
string |
HTTP Basic username. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |