[systemd-devel] Pruning journal on systemd 216

Petr Pisar ppisar at redhat.com
Wed Nov 11 08:12:51 PST 2015


On 2015-11-10, Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> wrote:
> On Tue, Nov 10, 2015 at 09:23:50AM -0600, Ian Pilcher wrote:
>> Running Fedora 21 with systemd 216, and just discovered that journal
>> files are taking up 1.8G.  I see references to "journalctl
>> --vacuum-time" on the interwebs, but that option doesn't seem to be
>> present in my version.
>> 
>> So how should I go about cleaning out older journal data?
> You can
> a) simply remove files by hand
>    (find /var/log/journal/ -type f -mtime +DAYS -delete)
> b) set SystemMaxUse= or MaxRetentinoSec= in /etc/systemd/journald.conf
>    and 'systemctl kill --signal=SIGUSR2 systemd-journald' to execute
>    the new limit.
>
Thanks for the details. The default settings is 10 % or 15 % of file
system space.

-- Petr



More information about the systemd-devel mailing list