Bug 2215304 - journalctl with grep and follow does not show new entries
Summary: journalctl with grep and follow does not show new entries
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 38
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-15 13:13 UTC by Thomas Clark
Modified: 2023-07-19 03:14 UTC (History)
9 users (show)

Fixed In Version: systemd-253.7-1.fc38
Clone Of:
Environment:
Last Closed: 2023-07-19 03:14:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github systemd systemd pull 26995 0 None Merged journalctl: fix when --grep is used with --follow 2023-06-26 13:28:10 UTC

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.


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