I could be wrong, but I believe that takes effect for nearly created journal files as they are regularly rotated, so this way it doesn’t truncate existing logs unintentionally.
Thank you for your remark. I checked the directory in
/var/log/journal/99fccdaed26947e39447545957fd62b9
The oldest files are created 16th of march, so they are older than 14 days.
The largest files are 130MB, thes are the ones created 16th of march. So I would expect that at least MaxFileSec=14day would cleanup.
I’m not sure when they are rotated, but I’m curious if you still see them since it’s presumably been 24h now since you made the change. I assume whatever logrotate/journald rotation process should have ran by now. It might also be worth seeing if a reboot helps things.
[jojo@fedora ~]$ journalctl --disk-usage
Archived and active journals take up 689.7M in the file system.
[jojo@fedora ~]$ systemd-analyze cat-config systemd/journald.conf
# /etc/systemd/journald.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the journald.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/journald.conf' to display the full config.
#
# See journald.conf(5) for details.
[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=10000
#SystemMaxUse=
#SystemKeepFree=
#SystemMaxFileSize=
#SystemMaxFiles=100
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=
#MaxFileSec=1month
#ForwardToSyslog=no
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
#LineMax=48K
#ReadKMsg=yes
#Audit=yes
# /etc/systemd/journald.conf.d/journald.conf
# eigene Spezifikationen für journald
SystemMaxUse=500M
MaxFileSec=14day