‘man journald.conf’ is your friend. You can limit the size of individual journal files size as well as the overall available storage. That should help here. For example, limit the overall storage by editing ‘SystemMaxUse=’ in /etc/systemd/journald.conf like this
I tried setting that in my case to 300M but to no avail, it has not reduced the overall size and it is still at 904M. Is there a correct way to get the overall size reduced, say by running a command, as simply re-booting with a change to the settings has not made any difference.
I did try reducing the max to 100 but the boot was slightly quicker with the flush only taking 25secs this time but the storage went up to 912M! I’ll try your suggestion.
Edit: Just tried deleting and recreating the /var/log/journal and restart the service. Now only using 8M but it is till showing the max possible use as 4G, I thought that conf change would limit the max use?
# 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.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See journald.conf(5) for details.
[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitInterval=30s
#RateLimitBurst=1000
#SystemMaxUse=100M
#SystemKeepFree=
#SystemMaxFileSize=
#SystemMaxFiles=100
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=
#MaxFileSec=1month
#ForwardToSyslog=no
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/tty10
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
Only thing I have changed since install was the SystemMaxUse value.