I have a problem. More than 4G in this directory
*******@***:~$ sudo du --summarize -h /var/log
Then I deleted most of the logging files with sudo rm /var/log/* and restarted the computer. I rechecked the directory with
*******@***:~$ sudo du --summarize -h /var/log/*
in /var/log/journal file, more than 4G of data in it. I run in command line
*******@***:~$ journalctl and I saw a repetitive log from audit. I Press Pg Dn and all the log are the same. This is a snapshot of it
On Fri, Oct 05, 2018 at 03:27:40PM +0400, Destin J Funk wrote:
> Dear all Ubuntu Users and developers,
> I have a problem. More than 4G in this directory
> *******@***:~$ sudo du --summarize -h /var/log
> 4.2G /var/log
It's the systemd journal, the default set-up means that it only starts
throwing away old logs when it reaches 4Gb (there are other limits but
they only really affect it if it's on a small filesystem).
I think that 4Gb is ridiculously large. Reducing the 4Gb limit can be
done but you need to read the systemd documentation first really.