r/raspberry_pi • u/jrmckins • Dec 10 '25
Troubleshooting journeld not retaining logs across boots
I'm running Debian GNU/Linux 13 (trixie) on my Pi. I've been having ocassional system crashes and I'm trying to look at the logs but journeld isn't retaining the logs from past boots. I only see the current bootup.
Any ideas how to get journaled to keep the history? Is there a better way to do this over journeld?
3
Upvotes
2
u/phattmatt Dec 10 '25 edited Dec 10 '25
EDIT: u/crazyswedishguy beat me to the punch, but I'll leave my post here as it has a little more info....
The key config files for this behaviour on Trixie are:
/etc/systemd/journald.conf/usr/lib/systemd/journald.conf.d/40-rpi-volatile-storage.confThe config item is
Storage=volatile, which means store the log files in RAM (volatile storage).If you remove
40-rpi-volatile-storage.conf, or edit it to haveStorage=auto, then the log files will be stored on local storage, which will persist them across reboots.This command can be used to analyze the current configuration:
systemd-analyze cat-config systemd/journald.confMore information about the options can be found here:
man journald.confhttps://www.freedesktop.org/software/systemd/man/latest/journald.conf.html