journalctl --unit= -b output random lines are missing
This document (000019696) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 15
Situation
For example:
When running 'journalctl -b --unit=tftp', random lines are missing.
Resolution
For this reason it's advised to use "journalctl | grep <pattern>" instead.
This is especially the case if the service is not a long-running one.
Cause
The consequence is that some of the process metadata normally added to each log entries might be missing in this case. However, the message itself is still recorded by journald.
Status
Additional Information
The missing messages are issued by processes that exited just (?) after emitting the missing logs.
This limitation has been mitigated in recent version of systemd but not completely solved. The definitive fix would need the kernel to send metadata along with the messages send to the socket but this works is still in progress.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000019696
- Creation Date: 04-Sep-2020
- Modified Date:23-Oct-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com