conduktor.io ↗

Kafka DescribeLogDirs Request Wire Format v4 — Binary Protocol Layout

What is DescribeLogDirs?

Shows per-broker disk usage, replica offset lag, and which replicas are mid-move (futureLogDir), via kafka-log-dirs.sh. High offsetLag on a follower replica indicates it's lagging behind the leader; compare with the ISR list to assess replication health.

Related Errors

CLUSTER_AUTHORIZATION_FAILED · KAFKA_STORAGE_ERROR · NOT_LEADER_OR_FOLLOWER · UNKNOWN_TOPIC_OR_PARTITION

Wire Diagram

Request Header · flexible
message_size int32 · 4B
api_key int16 · 2B
api_version int16 · 2B
correlation_id int32 · 4B
client_id string (compact)
tagged var
DescribeLogDirsRequest v4
Topics? array
tagged var
Topic string (compact)
Partitions []int32
tagged var

Schema & Example

Schema
{
  "Topics": [{
      "Topic": string,
      "Partitions": [int32]
  }]?
}
Example
{
  "Topics": [{
      "Topic": "orders",
      "Partitions": [1, 2, 3]
  }]?
}