conduktor.io ↗

log.retention.ms — Kafka Broker Configuration

The number of milliseconds to keep a log file before deleting it (in milliseconds), If not set, the value in log.retention.

Description

The number of milliseconds to keep a log file before deleting it (in milliseconds), If not set, the value in log.retention.minutes is used. If set to -1, no time limit is applied.

Default Values by Kafka Version

Kafka VersionDefault Value
0.9.0null
0.10.0null
0.10.1null
0.10.2null
0.11.0null
1.0null
1.1null
2.0null
2.1null
2.2null
2.3null
2.4null
2.5null
2.6null
2.7null
2.8null
3.0null
3.1null
3.2null
3.3null
3.4null
3.5null
3.6null
3.7null
3.8null
3.9null
4.0null
4.1null
4.2null

Related Configs

log.local.retention.ms

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.