-
Notifications
You must be signed in to change notification settings - Fork 9
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 feature to enable 'persistent' kernel logging #4
Comments
This check should be part of a new kernel logging plugin. Comment 2 in #5
|
To be more specific, we keep running into issues in SLES 15 where journal log entries do not persist for previous boots, only the current boot. This is not helpful for when the user runs into a problem but reboots and then attempts to save the log. |
Thanks @lucianochavez for the detailed explanation. I think it's better to have a separate plugin to handle journald configuration and it should be a mandatory plugin and always run by default. A quick note on the mandatory/optional plugins. |
https://documentation.suse.com/sles/15-SP1/html/SLES-all/cha-journalctl.html#sec-journalctl-persistent is the corresponding SLES documentation. |
Thanks @ananthmg for sharing the document. I did bit of experiments and found that we don't need two different approaches for SLES and RHEL to enable persistent journald logs.
|
Hello @lucianochavez @mwbringmann Do you use SystemMaxFileSize or SystemMaxFiles journald config options to limit the journald disk consumption? If yes then please let me know your preferred values.
|
No, I have not used these options before. Usually, I have bypassed the configuration issue and grabbed the full log files, directly. |
This feature was dependent on the optional plugin feature in ServiceReport. Will upstream the journalctl plugin to have persistent logging soon. |
Any outlook on this enhancement? We continue to run across systems with the default in situations where the system was rebooted (due to a crash or hang or reboot test) and thus have lost error log entries from the prior boot. |
Some distros or configurations do not enable/disable persistent kernel event logging
i.e. /var/log/messages content showing events of prior boot cycles. In the event that
the system crashes, the messages file prior to the crash is thus lost. It would be useful
to add an option to reset the kernel configuration to enable persistent event logging, so
that the maximum amount of information about crashes is retained.
The text was updated successfully, but these errors were encountered: