Bug 2215304

Summary: journalctl with grep and follow does not show new entries
Product: [Fedora] Fedora Reporter: Thomas Clark <fedoraproject>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: dtardon, fedoraproject, filbranden, lnykryn, msekleta, ryncsn, systemd-maint, yuwatana, zbyszek
Target Milestone: ---Keywords: Regression, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-253.7-1.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-19 03:14:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thomas Clark 2023-06-15 13:13:17 UTC
Invoking journalctl using --grep and --follow results in an immediate output of events in reverse order, but no new events follow. This is a change in the most recent systemd update.

Reproducible: Always

Steps to Reproduce:
1.journalctl --grep=api --follow
2.
3.
Actual Results:  
Existing events are listed in reverse order, all the way back to the beginning, with no further output

Expected Results:  
Show only the most recent journal entries, and continuously print new entries as they are appended to the journal, as specified in the man page

Comment 1 Lukáš Nykrýn 2023-06-26 12:24:56 UTC
It seems to be fixed now upstream. So at least the next version of systemd should work fine.

Comment 3 Fedora Update System 2023-07-17 16:58:16 UTC
FEDORA-2023-b07a6a9665 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-b07a6a9665

Comment 4 Fedora Update System 2023-07-18 01:26:25 UTC
FEDORA-2023-b07a6a9665 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-b07a6a9665`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-b07a6a9665

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-07-19 03:14:23 UTC
FEDORA-2023-b07a6a9665 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.