-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for "current boot" logic for journald source #1097
Comments
👍 it makes sense to change the default to this. A couple of questions:
|
|
Sounds good.
What exactly do you mean here? I'll defer to you on what's best. Obviously I want to resolve the current issue, which appears to be the case if we change the default to read from the current boot, correct? |
The systemd journal library can be told to read from only the volatile runtime journal, or from all the journals. There doesn't appear to be much support for limiting reading to only the runtime journal, notably including no option for such in This is distinct from starting reading at the current boot start, which would have solved #1081 (when combined with the above). I will proceed in this direction. |
The journald source has an option for limiting reading from the volatile ("runtime") journal which defaults to
true
. While these logs are by definition lost at each reboot, most non-embedded systems don't actually use the volatile journal, resulting in "empty" journals with the default options. The persistent journal also has boot markers that allow for limiting journal retrieval to only records since the current boot.Vector could add support for limiting journald retrieval to the current boot logs, either as an additional option or to replace the current runtime option.
The text was updated successfully, but these errors were encountered: