Menu

1 / 2

Restarting journald froze rsyslog: seventy-five minutes of silent log files and a blind CrowdSec

DEV Community: ansible·Hécate R.·1 day ago
#pKsKqnKx
#devtoansible#devto#dev#journald#journal
Long article (1474 words) — no AI summary yet.
Reading 0:00
15s threshold

Some failures make noise and some make none. This one was of the second kind: for seventy-five minutes, three of my servers stopped writing to /var/log/messages and /var/log/secure , with no failed service, no error line, and it was a change I had just made myself, for good reasons, that caused it. The only witness was my monitoring, which noticed that another tool had stopped reading anything.

The context: a journal that didn’t survive crashes

It starts with a machine that dies abruptly. One of the machines in my small Kubernetes cluster crashes overnight, and after the reboot I want to know what happened just before. The natural command is journalctl -b -1 , which shows the previous boot’s journal. It answers that no persistent journal exists. On that machine, and on two others, systemd-journald kept everything in memory, in /run/log/journal , and a reboot erased it all.

That isn’t an exotic setting. journald has a Storage= parameter with four values. volatile keeps the journal in memory only.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.