Fix giant system log file on ubuntu server: =========================================== I can quickly run out of space due to systemd spamming by /var/log/auth.log file when it cant go to sleep when system lid is closed. First, edit this file "/etc/systemd/logind.conf" and add this contents to the file: HandleLidSwitch=ignore save the file and delete all /var/log/auth.log files (including auth.log.1 for exsample) then reboot and the issue should be fixed. Sources: https://unix.stackexchange.com/questions/506629/auth-log-systemd-log-spam-suspend-target-is-masked#506630 Date: February 26th 2023.