Set journald to persist logs #11
Closed
opened 2019-01-26 11:22:03 +00:00 by raucao
·
7 comments
No Branch/Tag Specified
Labels
Clear labels
monitoring
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
service
discourse
Kosmos Community Forums
Infrastructure metrics, alerts, notifications, etc.
service
accounts
Kosmos Accounts
service
drone-ci
Kosmos Drone CI
service
email
mail.kosmos.org
service
garage
S3-compatible object storage
service
gitea
Kosmos Gitea
service
ipfs
Kosmos IPFS
service
lightning
Lightning address, lndhub, etc.
service
mastodon
kosmos.social
service
nostr
Relays, Blossom server, etc.
service
postgres
Database cluster
service
remotestorage
Portable data storage for the Web
service
wiki
Kosmos Wiki
service
xmpp
Kosmos Chat
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
release
major
release
minor
release
patch
All your base are belong to us
User interface, process design, etc.
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/chef#11
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.