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
29a095d
mount-util: add umount_and_free() helper
poettering Apr 20, 2023
2f5cae8
journalctl: use DEFINE_MAIN_FUNCTION() macro
yuwata Feb 17, 2023
41c7587
journalctl: fix output when --lines is used with --grep
YHNdnzj Feb 18, 2023
3858e56
journalctl: fix output when --until is used with --lines
YHNdnzj Mar 4, 2023
53d856c
journalctl: fix output when --since is used with --lines
YHNdnzj Mar 4, 2023
617c3b3
journalctl: fix when --since, --until and --lines are used altogether
YHNdnzj Mar 9, 2023
b7bd901
journalctl: fix when --grep is used with --follow
YHNdnzj Mar 23, 2023
fab2e20
journalctl: make --follow work with --merge again
mrc0mmand May 19, 2023
6f34eeb
test: check if we can use --merge with --follow
mrc0mmand May 19, 2023
86e2281
journalctl: always initialize global variables
yuwata May 4, 2023
cdc6348
journalctl: use correct variable to check if --since is specified
yuwata May 4, 2023
3636f3f
journalctl: fix --no-tail handling
yuwata May 4, 2023
e2ad278
journalctl: split out action_list_fields()
yuwata May 3, 2023
874400a
journalctl: split out update_cursor()
yuwata May 4, 2023
86995eb
journalctl: split out show()
yuwata May 3, 2023
1e76123
journalctl: replace ppoll() loop with sd_event_loop()
yuwata May 3, 2023
b4b8ef0
journalctl: also update cursor with --follow
yuwata May 4, 2023
584739f
test: add testcase for 'journalctl --follow --cursor-file='
yuwata May 26, 2023
df1d383
journalctl: fix --follow with non-matching filter
yuwata May 28, 2023
c7bc030
test: make TEST-04 stable once again
mrc0mmand Jun 1, 2023
e863b02
journalctl: do not add io event source for stdout if it is a file
yuwata Aug 2, 2023
8b4cc83
journalctl: support --lines=+N for showing the oldest N entries
YHNdnzj Aug 10, 2023
35d2d1e
journalctl: don't skip over messages not matching the cursor
mrc0mmand Dec 5, 2023
69bf1d7
journalctl: make --until work again with --after-cursor and --lines
yuwata Mar 20, 2024
458baf8
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