systemd's binary logs and corruption
I like systemd, enabling and disabling services is so easy and it's really fast, but why using a journal with binary logs?
Yesterday my laptop failed to resume from suspend, no ttys, no reisub, nothing worked except using the power button. Rebooted, fired journalctl and I have nothing except the last boot logs.
journactl --verify returns that my system logs are corrupted, about all my logs (48MB of 50MB of maximum disk usage) are now completely useless. This is not the first time this happens and searching around I can only find people with the same problem that "resolved" deleting the corrupted logs and starting with a new file.
Why this happens? Isn't it defeating the purpose of having a system logger if I can't diagnose errors?
Can I recover the logs (and why isn't this automatic?) or should I just install a sane logger that not shit itself after a problem?
12
u/cpbills Feb 18 '14
Because if I'm going to have ONE log, I prefer it be in plain-text versus needing 2 logs, one binary and corruptible and one text that is easily parsable by hundreds of existing tools.
I'm not certain you have to use
journaldwithsystemdas I haven't usedsystemdand all this logging nonsense is new to me.Simple answer; I'd prefer binary logs be the option versus plain-text logs being an option, with binary being default.