DEV Community

Discussion on: Cleaning up Disk Space on a Linux Machine from the Command Line

yoursunny profile image
Junxiao Shi

Log files are filling up my Debian/Ubuntu server. The solution is editing /etc/systemd/journald.conf: set SystemMaxUse=50M.
Of course this has security implications because you have fewer logs to investigate an incident.
This also doesn't apply to Asterisk and PM2 logs.