Set journald to persist logs #11
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I manually set
Storage=persistentinstead ofautoin/etc/systemd/journald.confjust now, but I think that should be done as part of the base recipe. Can't think of a situation where we'd want to throw away logs like that.This is still an issue. It was reset at some point on andromeda, and never added on barnard.
I checked and it doesn't appear to be an issue. From the docs:
Barnard has journal files under
/var/log/journal/aa5e5810d9954df09c012672093c2db6/dating back to Apr 21. I checked on our other Ubuntu 18.04 servers, they do have a/var/log/journal/folder so the default persists the logs to disk.Is there something I'm missing?
Yes, the logs were empty when I tried to check them using
journalctl, which is the reason why this issue exists in the first place, and why I went and fixed it for that one machine.I don't understand, the logs wouldn't be "empty" even if they were explicitly set to volatile, they would still be stored in memory (which they were not before you changed that setting, since the default is auto, which persists them to disk)
They were gone after a reboot. Then I looked at the docs and it seemed like they were indeed only stored in memory until I changed it. That's all I know, and it was definitely broken when I created the issue.
I think we can close this, as the journald logs on barnard go back further than the last reboot (12 days ago)
OK.