Ravi Sir's Cards › AWS
logrotate vs journalctl --vacuum
This comparison card contrasts logrotate and journalctl --vacuum. logrotate is described as text log files. journalctl --vacuum is described as the systemd journal. The card pairs logrotate with app logs, and journalctl --vacuum with journal too big.
Read card text
What this card says
Cleans
logrotate
Text log files.
journalctl --vacuum
The systemd journal.
Key points
Config in /etc/logrotate.d.
By size or time.
Example
logrotate -d /etc/logrotate.d/nginx
Use when
App logs.
Journal too big.