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: RateLimitBurst in journald.conf explains why a chatty service loses log lines

Linux
~/tips/tip-journalctl-ratelimit-dropped-messages

[Journal]

Explains and changes the per-service limit that makes journald drop messages in a burst.

If a log has a hole and journalctl says that messages were suppressed, the rate limit did it.

journald limits each service. By default more than 10000 messages in 30 seconds are dropped until the interval is over, and journald writes a note with the number of dropped messages. Raise RateLimitBurst= or the interval to keep more, or set either to 0 to turn the limit off.

[Journal]
RateLimitIntervalSec=30s
RateLimitBurst=20000

The limit protects the disk and the other services from one noisy program. Turning it off for everything is rarely a good idea. Fix the noisy service when you can.

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