[systemd-devel] Journald retaining logs for only 10 days

Nikolaus Rath Nikolaus at rath.org
Sat Nov 14 19:18:35 UTC 2020


On Nov 14 2020, Andrei Borzenkov <arvidjaar at gmail.com> wrote:
> 14.11.2020 14:32, Nikolaus Rath пишет:
> ...
>>>>
>>>> # grep -vE '^#' /etc/systemd/journald.conf
>>>>
>>>> [Journal]
>>>> SystemMaxUse=300M
>>>
>>> The number shown by disk usage (320 MB) is higher than 300 MB. Maybe also check the files
>>> in `/var/log/journal`.
>> 
>> It's a bit bigger on disk too:
>> 
>> # du -hs /var/log/journal
>> 321M	/var/log/journal
>> 
>> journalctl --verify does not find any errors.
>> 
>> 
>> Could that be related to the short retention, or is this an unrelated problem?
>> 
>
> It is not a "problem". You told journald to keep 300M of data and it
> does exactly that.

Hu? As far as I can tell, I told it to keep 300 MB and it's using 320
MB. Furthermore, in these 320 MB it seemingly only stored 27 MB worth of
log data.


Best,
-Nikolaus

-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«


More information about the systemd-devel mailing list