You are not logged in.

#1 2019-07-04 09:35:36

userak
Member
Registered: 2017-02-04
Posts: 42

[solved] How to configure journald to keep logs of only last 5 boots ?

How do I configure journald to keep logs of only last 5 boots ?

Last edited by userak (2019-07-04 15:32:43)


A newbie archlinux user ...

Offline

#2 2019-07-04 09:55:05

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [solved] How to configure journald to keep logs of only last 5 boots ?

Don't think this is a tunable.  See man journald.conf for more.  You can set SystemMaxUse to a slow number like 50M or something.

Last edited by graysky (2019-07-04 09:55:36)

Offline

#3 2019-07-04 11:05:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: [solved] How to configure journald to keep logs of only last 5 boots ?

You can also specify the maximum age that journal entries/files can be saved.  So if you reboot at regular intervals, you could get a close approximation to 5 boots.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2019-07-04 14:26:59

userak
Member
Registered: 2017-02-04
Posts: 42

Re: [solved] How to configure journald to keep logs of only last 5 boots ?

Thanks guys , I will stick to using "SystemMaxUse" option.


A newbie archlinux user ...

Offline

Board footer

Powered by FluxBB