Stu Eggerton

How to truncate old logs in Debian 12

Problem

Logs filling up a Debian 12 server

Solution

Thanks to some searching I found the command journalctl --vacuum-size=50M

You can also set to auto trim by updating /etc/systemd/journald.conf with

SystemMaxUse=50M

#linux