Journalctl log retention
In order to clean up journalctl logs use
Set time retentionjournalctl --vacuum-time=2d
Set size retentionjournalctl --vacuum-size=500M
In order to clean up journalctl logs use
Set time retentionjournalctl --vacuum-time=2d
Set size retentionjournalctl --vacuum-size=500M
journalctl -u service.name
In order to check whether is logrotate correct use (dry run):logrotate -d -f /etc/logrotate.d/mongodb
Actualy test a logrotatelogrotate -v -f /etc/logrotate.d/mongodb