[Eisfair] [E1 64bit] Log vom Journal frisst mehrere GB

Fabian Törner fabian at toerners.eisfair.de
Sa Nov 25 20:42:15 CET 2023


Hallo zusammen,

Am 29.10.2023 um 10:05 schrieb Holger Bruenjes:
> bzw, besser ist das
> 
> /etc/systemd/journald.conf.d/00-journal-size.conf
> 
> [Journal]
> SystemMaxUse=1024
> 

ich habe nun die Datei editiert:

/etc/systemd/journald.conf

dort vor SystemMaxUse das "#" entfernt und auf =1024 gesetzt

eis # cat /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=1024M
#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

> 
> service daemon-reload
> 
> service restart journald

danach habe ich den Befehl ausgeführt:

service restart systemd-journald

keine 2sec später war der Wert entsprechend zurück gegangen:

eis # du -sh /var/log/journal
1021M   /var/log/journal

Vielen Dank & viele Grüße
Fabian


-- 
Diese E-Mail wurde von AVG-Antivirussoftware auf Viren geprüft.
www.avg.com


Mehr Informationen über die Mailingliste Eisfair