log.segment.bytes — Kafka Broker Configuration
The maximum size of a single log file
Description
The maximum size of a single log file
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 0.8.0 | 1024 * 1024 * 1024 |
| Broker | 0.8.1 | 1024 * 1024 * 1024 |
| Broker | 0.8.2 | 1024 * 1024 * 1024 |
| Broker | 0.9.0 | 1073741824 |
| Broker | 0.10.0 | 1073741824 |
| Broker | 0.10.1 | 1073741824 |
| Broker | 0.10.2 | 1073741824 |
| Broker | 0.11.0 | 1073741824 |
| Broker | 1.0 | 1073741824 |
| Broker | 1.1 | 1073741824 |
| Broker | 2.0 | 1073741824 |
| Broker | 2.1 | 1073741824 |
| Broker | 2.2 | 1073741824 |
| Broker | 2.3 | 1073741824 |
| Broker | 2.4 | 1073741824 |
| Broker | 2.5 | 1073741824 |
| Broker | 2.6 | 1073741824 (1 gibibyte) |
| Broker | 2.7 | 1073741824 (1 gibibyte) |
| Broker | 2.8 | 1073741824 (1 gibibyte) |
| Broker | 3.0 | 1073741824 (1 gibibyte) |
| Broker | 3.1 | 1073741824 (1 gibibyte) |
| Broker | 3.2 | 1073741824 (1 gibibyte) |
| Broker | 3.3 | 1073741824 (1 gibibyte) |
| Broker | 3.4 | 1073741824 (1 gibibyte) |
| Broker | 3.5 | 1073741824 (1 gibibyte) |
| Broker | 3.6 | 1073741824 (1 gibibyte) |
| Broker | 3.7 | 1073741824 (1 gibibyte) |
| Broker | 3.8 | 1073741824 (1 gibibyte) |
| Broker | 3.9 | 1073741824 (1 gibibyte) |
| Broker | 4.0 | 1073741824 (1 gibibyte) |
| Broker | 4.1 | 1073741824 (1 gibibyte) |
| Broker | 4.2 | 1073741824 (1 gibibyte) |
| Broker | 4.3 | 1073741824 (1 gibibyte) |
| Broker | 4.4 | 1073741824 (1 gibibyte) |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| broker / throughput | 536870912 | Sets the segment roll size. Smaller segments can make more segments eligible for retention or compaction sooner. Tradeoff: More segments increase file, index and housekeeping overhead. Active segments and other conditions still affect cleanup. Reference · 2026-10-27 |
| broker / cost | 268435456 | Sets the segment roll size. Smaller segments can make more segments eligible for retention or compaction sooner. Tradeoff: More segments increase file, index and housekeeping overhead. Active segments and other conditions still affect cleanup. Reference · 2026-10-27 |
Related Configs
log.retention.bytes · log.retention.hours · log.index.size.max.bytes · background.threads · log.retention.check.interval.ms · log.segment.delete.delay.ms · num.partitions
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.