Clear Journal logs on Linux host
Clear Journal logs on Linux host
Date Posted: 29-04-2018
We ran out of disk space on our server and /var consumes more disk space. On checking further, /var/log/journal consumes more disk space.
The safest way to remove unnecessary entries via journalctl
journalctl --vacuum-size=128M
Now, verify journalctl.
journalctl --verify
Edit SystemMaxuse on /etc/systemd/journald.conf
vi /etc/systemd/journald.conf
SystemMaxUse=128M