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

2020-12-19 Thread Lennart Poettering
On Mo, 16.11.20 20:29, Andrei Borzenkov (arvidj...@gmail.com) wrote: > > Hu? As far as I can tell, I told it to keep 300 MB and it's using 320 > > MB. > > For all I can tell, SystemMaxUse applies to inactive journal files only > - this sets target how many archived files to delete. systemd will >

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

2020-11-17 Thread Reindl Harald
Am 14.11.20 um 21:29 schrieb Vito Caputo: [Journal] SystemMaxUse=300M One thing to consider is journald allocates space per-file in 8MiB increments. On my laptop for example, there are 27 user journals, 8MiB each, where the last object offset is around 2MiB. This alone burns ~162MiB in al

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

2020-11-16 Thread Andrei Borzenkov
14.11.2020 22:18, Nikolaus Rath пишет: > On Nov 14 2020, Andrei Borzenkov 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 30

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

2020-11-14 Thread Vito Caputo
On Sat, Nov 14, 2020 at 12:29:30PM -0800, Vito Caputo wrote: > On Sat, Nov 14, 2020 at 09:31:23AM +, Nikolaus Rath wrote: > > Hello, > > > > I just discovered that on one of my systems journald only retains log > > entries for about 10 days: > > > > # journalctl | head -1 > > -- Logs begin at

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

2020-11-14 Thread Vito Caputo
On Sat, Nov 14, 2020 at 09:31:23AM +, Nikolaus Rath wrote: > Hello, > > I just discovered that on one of my systems journald only retains log > entries for about 10 days: > > # journalctl | head -1 > -- Logs begin at Wed 2020-11-04 15:57:13 UTC, end at Sat 2020-11-14 09:28:19 > UTC. -- > >

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

2020-11-14 Thread Mantas Mikulėnas
On Sat, Nov 14, 2020, 20:17 Mantas Mikulėnas wrote: > On Sat, Nov 14, 2020 at 11:31 AM Nikolaus Rath wrote: > >> Hello, >> >> I just discovered that on one of my systems journald only retains log >> entries for about 10 days: >> >> # journalctl | head -1 >> -- Logs begin at Wed 2020-11-04 15:57:

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

2020-11-14 Thread Nikolaus Rath
On Nov 14 2020, Uoti Urpala wrote: > On Sat, 2020-11-14 at 09:31 +, Nikolaus Rath wrote: >> # journalctl --disk-usage >> Archived and active journals take up 320.0M in the file system. >> >> # journalctl > alllogs >> # ls -lh alllogs >> -rw-r--r-- 1 root root 27M Nov 14 09:24 alllogs > > The

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

2020-11-14 Thread Nikolaus Rath
On Nov 14 2020, Andrei Borzenkov 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

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

2020-11-14 Thread Mantas Mikulėnas
On Sat, Nov 14, 2020 at 11:31 AM Nikolaus Rath wrote: > Hello, > > I just discovered that on one of my systems journald only retains log > entries for about 10 days: > > # journalctl | head -1 > -- Logs begin at Wed 2020-11-04 15:57:13 UTC, end at Sat 2020-11-14 > 09:28:19 UTC. -- > > I do not un

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

2020-11-14 Thread Uoti Urpala
On Sat, 2020-11-14 at 09:31 +, Nikolaus Rath wrote: > # journalctl --disk-usage > Archived and active journals take up 320.0M in the file system. > > # journalctl > alllogs > # ls -lh alllogs > -rw-r--r-- 1 root root 27M Nov 14 09:24 alllogs The journal stores a lot of metadata for each log

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

2020-11-14 Thread Andrei Borzenkov
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: >

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

2020-11-14 Thread Nikolaus Rath
On Nov 14 2020, Paul Menzel wrote: >> I just discovered that on one of my systems journald only retains log >> entries for about 10 days: >> >> # journalctl | head -1 >> -- Logs begin at Wed 2020-11-04 15:57:13 UTC, end at Sat 2020-11-14 09:28:19 >> UTC. -- >> >> I do not understand what could ca

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

2020-11-14 Thread Paul Menzel
Dear Nikolaus, Am 14.11.20 um 10:31 schrieb Nikolaus Rath: I just discovered that on one of my systems journald only retains log entries for about 10 days: # journalctl | head -1 -- Logs begin at Wed 2020-11-04 15:57:13 UTC, end at Sat 2020-11-14 09:28:19 UTC. -- I do not understand what co

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

2020-11-14 Thread Nikolaus Rath
Hello, I just discovered that on one of my systems journald only retains log entries for about 10 days: # journalctl | head -1 -- Logs begin at Wed 2020-11-04 15:57:13 UTC, end at Sat 2020-11-14 09:28:19 UTC. -- I do not understand what could cause this, because I have no retention limit config