cockroach statement-diag to manage and download statement diagnostics bundles generated from the or .
Required privileges
Only members of theadmin role and users with the VIEWSYSTEMTABLE , which provides read-only access to system tables, can run cockroach statement-diag. By default, the root user belongs to the admin role.
Subcommands
Synopsis
List available statement diagnostics bundles and outstanding activation requests:.zip file:
Flags
- The
deleteandcancelsubcommands support one general-use flag. - All
statement-diagsubcommands support several client connection and logging flags.
General
Client connection
See for more details.
Logging
By default, this command logs messages tostderr. This includes events with WARNING and higher.
If you need to troubleshoot this command’s behavior, you can .
Examples
Setup
These examples assume you are running and have requested and/or generated statement diagnostics bundles using the or .Download a statement diagnostics bundle
List statement diagnostics bundles and/or activation requests:bundle.zip:

