RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1276751 - journalctl skips log entries with no MESSAGE when using its terser output formats
Summary: journalctl skips log entries with no MESSAGE when using its terser output for...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-30 17:52 UTC by mulhern
Modified: 2020-12-15 07:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-15 07:38:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description mulhern 2015-10-30 17:52:19 UTC
Description of problem:

journalctl should show all entries that match its search criteria. But it skips those that have no MESSAGE field set.


Version-Release number of selected component (if applicable):

219

How reproducible:

Always.

Steps to Reproduce:
1. Get a message with no MESSAGE field into the log. This is very easy using python-systemd as:

>>> from systemd import journal
>>> journal.sendv('MESSAGE_ID=94a9ab0126ed438ebbc99b9771841f22')

2. Inspect the journal by searching for messages with this MESSAGE_ID and note that there are no lines of output representing entries found.

[root@megadeth mulherns_data]# journalctl UUID=94a9ab0126ed438ebbc99b9771841f22
-- Logs begin at Mon 2015-09-14 12:02:58 EDT, end at Fri 2015-10-30 13:27:14 EDT. --

Actual results:

No lines corresponding to the entry just inserted into the journal is found if journalctl's default output format is used.

Expected results:

Should see an entry, which probably should look the same as the entry you get when the MESSAGE field is set to "", like:

>>> from systemd import journal
>>> journal.sendv('MESSAGE_ID=94a9ab0126ed438ebbc99b9771841f22', MESSAGE=")

[root@megadeth mulherns_data]# journalctl MESSAGE_ID=94a9ab0126ed438ebbc99b9771841f22
-- Logs begin at Mon 2015-09-14 12:02:58 EDT, end at Fri 2015-10-30 13:27:57 EDT. --
Oct 30 13:27:57 megadeth.lab.bos.redhat.com python[35063]: 

Note that an entry is shown, but there is nothing in the MESSAGE field, which is fine.

Additional info:

With wordy output formats, e.g., verbose, json the entry is shown regardless of whether message is set or not, the terse output formats all seem to behave like the default in not showing the entry w/ unset message.

Comment 4 RHEL Program Management 2020-12-15 07:38:12 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.