Stop journald from truncating your logs when you need them most
By Saket Jain Published Linux/Unix
Stop journald from truncating your logs when you need them most
Technical Briefing | 12/6/2026
You are staring at a production incident, logs are scrolling by, and suddenly they stop. You try to grep back through the buffer, but the data you need is gone. Journald is great until it hits its default rate limits or memory cap, and then it just discards entries to protect the kernel from flooding. This bit me in prod during a noisy database migration, and I spent hours digging through partial traces because the log level was high enough to overwhelm the journal buffer.
Why journald is silently dropping your packets
The culprit is usually the RateLimitIntervalSec and RateLimitBurst settings. By default, they are tuned for general-purpose workstations, not high-throughput servers. If your application decides to dump a stack trace while simultaneously hitting a high log volume, journald marks it as spam and silently drops the rest. Most people bump the storage size on disk, but they forget that the rate limit acts as a gatekeeper long before you run out of disk space.
grep -E "RateLimitIntervalSec|RateLimitBurst" /etc/systemd/journald.conf
- Uncomment the lines in journald.conf to set them to 10s and 10000 respectively
- Restart the service to apply changes, but watch out for transient logs vanishing
- Monitor your system logs for the warning message stating rate limiting was triggered
Moving past basic buffers with eBPF
If you are tired of playing tag with configuration files, eBPF is the right way out. Instead of asking journald to capture everything after it hits the syscall, use bpftrace to tap into the kernel functions directly. This ignores the rate limits entirely because you are sampling the tracepoint output before it ever reaches the logging daemon. It’s more overhead for your dev experience, but it’s the only way to catch intermittent bugs that occur during high-volume spikes.
Next time you suspect logs are going missing, drop a one-liner into your shell using bpftrace to monitor the specific function call that is failing. You will see the truth without the journal filter getting in your way.
