journald Storage Budget Planner

Turn a filesystem size, a free-space figure and a daily log volume into the [Journal] size limits for systemd-journald, and see how many days of logs they hold.

Persistent storage keeps the journal in /var/log/journal, volatile storage in /run/log/journal. Leave the size limit blank to use journald’s own default: 10 % of the filesystem, capped at 4 GiB. For volatile storage the filesystem is the size of /run, usually half of RAM.

Logs retained
—
Set the filesystem, the free space and the daily volume above.

— journal limit— still free— KeepFree reserve
The size limits this budget gives, and what they mean
SystemMaxUse
SystemKeepFree
Room above the reserve
Largest journal file
Files the limit needs
Retention at this volume
Drop-in for /etc/systemd/journald.conf.d/10-size.conf
—
How journald scales RateLimitBurst with available space
up to 1 MB×1
up to 16 MB×2
up to 256 MB×3
up to 4 GB×4
up to 64 GB×5
up to 1 TB×6

The defaults are 10 % for the size limit and 15 % for the KeepFree reserve, each capped at 4 GiB; journald honours both and uses the smaller, so a filesystem can be too full for the journal to reach its limit. The largest file defaults to one eighth of the limit, capped at 128 MiB, which is why a 4 GiB budget is kept in 32 files. Only archived files are deleted when journald vacuums, so a journal can sit above its limit until the active file rotates, and compression is on by default, so the days printed here are a floor rather than a ceiling. Sizes are written to whole MiB. systemd-journald reads this file at start-up, so a change takes effect on a restart of the service. Everything is computed in your browser; nothing is sent anywhere else.