Skip to main content
Use the cockroach statement-diag to manage and download statement diagnostics bundles generated from the or .

Required privileges

Only members of the admin 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:
Download a specified diagnostics bundle into a .zip file:
Delete a statement diagnostics bundle:
Delete all statement diagnostics bundles:
Cancel an outstanding activation request:
Cancel all outstanding activation requests:

Flags

General

Client connection

See for more details.

Logging

By default, this command logs messages to stderr. 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:
Download a statement diagnostics bundle to bundle.zip:

Delete all statement diagnostics bundles

Delete all statement diagnostics bundles:

Cancel an activation request

List statement diagnostics bundles and/or activation requests:

Delete an activation request

See also