Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix journalctl --follow with non-matching filter #257

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
964960b
mount-util: add umount_and_free() helper
poettering Apr 20, 2023
539019e
journalctl: use DEFINE_MAIN_FUNCTION() macro
yuwata Feb 17, 2023
f53fa49
journalctl: fix output when --lines is used with --grep
YHNdnzj Feb 18, 2023
302992b
journalctl: fix output when --until is used with --lines
YHNdnzj Mar 4, 2023
660fb97
journalctl: fix output when --since is used with --lines
YHNdnzj Mar 4, 2023
cdb4104
journalctl: fix when --since, --until and --lines are used altogether
YHNdnzj Mar 9, 2023
b834366
journalctl: fix when --grep is used with --follow
YHNdnzj Mar 23, 2023
48f67ed
journalctl: make --follow work with --merge again
mrc0mmand May 19, 2023
97b5411
test: check if we can use --merge with --follow
mrc0mmand May 19, 2023
7d95fdd
journalctl: always initialize global variables
yuwata May 4, 2023
81b27b0
journalctl: use correct variable to check if --since is specified
yuwata May 4, 2023
c15028b
journalctl: fix --no-tail handling
yuwata May 4, 2023
551c56b
journalctl: split out action_list_fields()
yuwata May 3, 2023
d606ae5
journalctl: split out update_cursor()
yuwata May 4, 2023
1230414
journalctl: split out show()
yuwata May 3, 2023
a4db3a3
journalctl: replace ppoll() loop with sd_event_loop()
yuwata May 3, 2023
01bc275
journalctl: also update cursor with --follow
yuwata May 4, 2023
53d98ca
test: add testcase for 'journalctl --follow --cursor-file='
yuwata May 26, 2023
8501075
journalctl: fix --follow with non-matching filter
yuwata May 28, 2023
d4363bc
test: make TEST-04 stable once again
mrc0mmand Jun 1, 2023
430fa10
journalctl: do not add io event source for stdout if it is a file
yuwata Aug 2, 2023
1d9008d
journalctl: support --lines=+N for showing the oldest N entries
YHNdnzj Aug 10, 2023
ca0a656
journalctl: don't skip over messages not matching the cursor
mrc0mmand Dec 5, 2023
8160d9f
journalctl: make --until work again with --after-cursor and --lines
yuwata Mar 20, 2024
614ea41
test: add test case for issue #31776
yuwata Mar 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions man/journalctl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@

<para>If the pattern is all lowercase, matching is case insensitive. Otherwise, matching is case
sensitive. This can be overridden with the <option>--case-sensitive</option> option, see
below.</para></listitem>
below.</para>

<para>When used with <option>--lines=</option> (not prefixed with <literal>+</literal>),
<option>--reverse</option> is implied.</para></listitem>
</varlistentry>

<varlistentry>
Expand Down Expand Up @@ -533,10 +536,13 @@
<term><option>-n</option></term>
<term><option>--lines=</option></term>

<listitem><para>Show the most recent journal events and limit the number of events shown. If
<option>--follow</option> is used, this option is implied. The argument is a positive integer or
<literal>all</literal> to disable line limiting. The default value is 10 if no argument is
given.</para></listitem>
<listitem><para>Show the most recent journal events and limit the number of events shown. The argument
is a positive integer or <literal>all</literal> to disable the limit. Additionally, if the number is
prefixed with <literal>+</literal>, the oldest journal events are used instead. The default value is
10 if no argument is given.</para>

<para>If <option>--follow</option> is used, this option is implied. When not prefixed with <literal>+</literal>
and used with <option>--grep=</option>, <option>--reverse</option> is implied.</para></listitem>
</varlistentry>

<varlistentry>
Expand Down
Loading
Loading