brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: MaxLevelStore in journald.conf stops journald from storing debug messages

Linux
~/tips/tip-journalctl-max-level-store-drop-debug

[Journal]

Makes journald drop messages above a chosen level before they are stored, such as debug.

A service that logs everything at debug level fills the journal with lines I will never read.

MaxLevelStore= sets the highest level that journald stores. The default is debug, so everything is kept. With info, debug messages are dropped before they reach the disk. The related MaxLevelSyslog= does the same for the forwarding to syslog.

[Journal]
MaxLevelStore=info

Dropped messages are gone for good. If you set this and later have to debug something, lower the level again first.

Further reading: journald.conf(5) manual page

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link