Site icon New Generation Enterprise Linux

Stop journald from truncating the logs you actually need

Observability & Logging (Journald, EBPF Tracing)

Stop journald from truncating the logs you actually need

Technical Briefing | 11/28/2026

You are staring at a post-mortem, looking for the specific request ID that crashed your backend. You jump into journalctl, search for the timestamp, and find nothing but a cryptic entry about the buffer being full. It is a classic move for systemd to drop events when it gets busy. When your logging infrastructure hits a spike, the default rate limits in journald turn into a black hole.

The defaults are lying to you

Most admins assume that if a message is sent to syslog or stderr, it lands on disk. But journald enforces a RateLimitIntervalSec and RateLimitBurst by default. When those limits are breached, you get a nasty message about messages being dropped, and then silence. I have seen this happen during kernel panics or runaway processes, exactly when you need the logs the most.

grep -E 'RateLimitIntervalSec|RateLimitBurst' /etc/systemd/journald.conf
  • Change RateLimitIntervalSec to 1s to allow more granular ingestion
  • Bump RateLimitBurst to 10000 to survive your next high-traffic surge
  • Set Storage to persistent to ensure your disk backend keeps up with the kernel

Verify you are not losing data under pressure

If you suspect the daemon is still dropping packets, you can attach an eBPF probe to the journald write path to track every failed call. Don’t just watch the logs; inspect the system call latency itself. If you see EPIPE or ENOBUFS errors in the kernel-side trace, your logging bottleneck is not the disk, it is the internal queue limit.

Next time a service behaves like it’s hallucinating, check the journald stats before you blame the application code. A few tweaks to the config file usually stop the silence, but keep an eye on your disk IOPS once you open the floodgates.

Linux Admin Automation  |  © www.ngelinux.com  |  11/28/2026
0 0 votes
Article Rating
Exit mobile version