3 ms·
journald also logs to /run/log/journal/ (a tmpfs) so until reboot you can still extract logs from it even if it didn't manage to write them to disk. See the 's
by ajb 2y ago
journald also logs to /run/log/journal/ (a tmpfs) so until reboot you can still extract logs from it even if it didn't manage to write them to disk. See the 'storage' option in `man journald.conf`
- drycabinet 2y agoThat part of the man page sounds confusing. Is it unconditional and enabled by default?
- zokier 2y agoYou have also RuntimeMaxUse=, RuntimeKeepFree=, RuntimeMaxFileSize=, RuntimeMaxFiles= options if you are concerned about journald overusing tmpfs. But yes, it seems unconditional that it writes the logs always somewhere, which is not unreasonable design imho.
- ajb 2y agoYes - unconditional by default, to be clear. I think if you set storage to 'none' it will switch it off completely
- iam-TJ 2y agoOne can use: journalctl --relinquish-var to switch from /var/log/journal/ to /run/log/journal/ (which should be a tmpfs)