rpk cluster logdirs describe

Describe log directories on Redpanda brokers.

This command prints information about log directories on brokers, particularly, the base directory that topics and partitions are located in, and the size of data that has been written to the partitions. The size you see may not exactly match the size on disk as reported by du: Redpanda allocates files in chunks. The chunks will show up in du, while the actual bytes so far written to the file will show up in this command.

The directory returned is the root directory for partitions. Within Redpanda, the partition data lives underneath the returned root directory in kafka/{topic}/{partition}_{revision}/ where revision is a Redpanda internal concept.


rpk cluster logdirs describe [flags]


Value Type Description



If non-empty, what column to aggregate into starting from the partition column (broker, dir, topic).

-b, --broker


If non-negative, the specific broker to describe (default -1).

-h, --help


Help for describe.



If true, sort by size.



Specific topics to describe.



Comma-separated list of broker <ip>:<port> pairs (for example, --brokers,, ). Alternatively, you may set the REDPANDA_BROKERS environment variable with the comma-separated list of broker addresses.



Redpanda config file, if not set the file will be searched for in the default locations.



SASL password to be used for authentication.



The authentication mechanism to use. Supported values: SCRAM-SHA-256, SCRAM-SHA-512.



The certificate to be used for TLS authentication with the broker.



Enable TLS for the Kafka API (not necessary if specifying custom certs).



The certificate key to be used for TLS authentication with the broker.



The truststore to be used for TLS communication with the broker.



SASL user to be used for authentication.

-v, --verbose


Enable verbose logging (default false).