/etc/systemd/journald.conf
(Redirected from Journald.conf)
Jump to navigation
Jump to search
/etc/systemd/journald.conf
journalctl
configuration file.
cat /etc/systemd/journald.conf | grep -v "#" | grep . [Journal]
Example default file in Ubuntu 18.04 LTS[edit]
/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. # 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 #RateLimitIntervalSec=30s #RateLimitBurst=1000 #SystemMaxUse= #SystemKeepFree= #SystemMaxFileSize= #SystemMaxFiles=100 #RuntimeMaxUse= #RuntimeKeepFree= #RuntimeMaxFileSize= #RuntimeMaxFiles=100 #MaxRetentionSec= #MaxFileSec=1month #ForwardToSyslog=yes #ForwardToKMsg=no #ForwardToConsole=no #ForwardToWall=yes #TTYPath=/dev/console #MaxLevelStore=debug #MaxLevelSyslog=debug #MaxLevelKMsg=notice #MaxLevelConsole=info #MaxLevelWall=emerg #LineMax=48K
Activities[edit]
- Modify
SystemMaxUse
to limit size of journal, for example:SystemMaxUse=100M
. Restart:systemctl restart systemd-journald
and verify using:journalctl --disk-usage
See also[edit]
Advertising: