journalctl -r is missing some entries if _SYSTEMD_UNIT is used to show entries for a specific service. $ journalctl _SYSTEMD_UNIT=kdm.service | wc -l 495 $ journalctl -r _SYSTEMD_UNIT=kdm.service | wc -l 488 Tested with journalctl from systemd 216.
Created attachment 106714 [details] Test journal file Test journal file attached. To reproduce the bug: $ tar zxvf system.journal.tar.gz $ journalctl --file system.journal --verify PASS: system.journal $ journalctl --file system.journal _SYSTEMD_UNIT=test.service -- Logs begin at Tue 2014-09-16 10:44:11 EST, end at Tue 2014-09-16 10:44:15 EST. -- Sep 16 10:44:11 systemd-test test[134]: Message 1 / 5 Sep 16 10:44:11 systemd-test test[134]: Message 2 / 5 Sep 16 10:44:11 systemd-test test[134]: Message 3 / 5 Sep 16 10:44:11 systemd-test test[134]: Message 4 / 5 Sep 16 10:44:15 systemd-test test[134]: Message 5 / 5 $ journalctl --file system.journal -r _SYSTEMD_UNIT=test.service -- Logs begin at Tue 2014-09-16 10:44:11 EST, end at Tue 2014-09-16 10:44:15 EST. -- Sep 16 10:44:11 systemd-test test[134]: Message 1 / 5
I can confirm this behaviour with given attachement. Running Arch Linux on Intel machine (x86_64), systemd 217.
This looks like It's same problem as in https://bugs.freedesktop.org/show_bug.cgi?id=84867 and https://bugs.freedesktop.org/show_bug.cgi?id=86855 for which patch was alredy submitted. However I can't confirm that 'cause I'm unable to reproduce this bug with given journal file.
(In reply to Andrej Manduch from comment #3) > This looks like It's same problem as in > https://bugs.freedesktop.org/show_bug.cgi?id=84867 and > https://bugs.freedesktop.org/show_bug.cgi?id=86855 for which patch was > alredy submitted. > > However I can't confirm that 'cause I'm unable to reproduce this bug with > given journal file. The issue still occurs with systemd git master 8b5e2af10830d55b2032e6c79d0cd1f959bb5b7f. $ ./journalctl --file system.journal -r _SYSTEMD_UNIT=test.service -- Logs begin at Tue 2014-09-16 10:44:11 AEST, end at Tue 2014-09-16 10:44:15 AEST. -- Sep 16 10:44:11 systemd-test test[134]: Message 1 / 5 It is fixed after applying patch from http://lists.freedesktop.org/archives/systemd-devel/2014-December/026013.html $ ./journalctl --file system.journal -r _SYSTEMD_UNIT=test.service -- Logs begin at Tue 2014-09-16 10:44:11 AEST, end at Tue 2014-09-16 10:44:15 AEST. -- Sep 16 10:44:15 systemd-test test[134]: Message 5 / 5 Sep 16 10:44:11 systemd-test test[134]: Message 4 / 5 Sep 16 10:44:11 systemd-test test[134]: Message 3 / 5 Sep 16 10:44:11 systemd-test test[134]: Message 2 / 5 Sep 16 10:44:11 systemd-test test[134]: Message 1 / 5
Fixed by http://cgit.freedesktop.org/systemd/systemd/commit/?id=2173cbf847fc53ca24950e77958c902edecfc207
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.