Summary: | journalctl does not show log past an invalid entry | ||
---|---|---|---|
Product: | systemd | Reporter: | zebulon <zebul666> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED MOVED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
a quick fix that skip on bad message error
skip bad entries with a new command line switch in journalctl |
Description
zebulon
2015-04-17 14:02:38 UTC
It's not even the log from the same corrupted file) that are not shown but the logs from the other uncorrupted file Created attachment 115167 [details] [review] a quick fix that skip on bad message error This is an attempt to fix that error. It does not exit on bad message when parsing entry and continue to process log. However I doubt it is generic enough to deal with all errors It could be desirable to even not return at all if output_journal gives an error but attempt to continue anyway ?? Created attachment 115178 [details] [review] skip bad entries with a new command line switch in journalctl Add a command line switch (--skip-entries) (--skip-bad-entries was too long) to skip bad or currupted entries in the journal. This simply ignore errors returned by output_journal to continue processing the journal. Is it right to do it that way ? There have been many fixes in this area. We now try to skip invalid entries much better. If this is still an issue, please submit a patch or issue on the new bugtracker on https://github.com/systemd/systemd. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.