From: Zbigniew Jędrzejewski-Szmek Date: Tue, 22 Nov 2022 11:00:17 +0000 (+0100) Subject: man/journalctl: mention systemd-cat, make the description more direct X-Git-Tag: v253-rc1~472 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70b9ea26b6cc5b75bbf43c1007f3857c0511a61b;p=thirdparty%2Fsystemd.git man/journalctl: mention systemd-cat, make the description more direct We said "query the journal". This is true but also very generic. Let's say "print log entries from the journal" instead, so that users who are looking for "logging" are more likely to figure out that the journalctl is the tool for them. Also, mention systemd-journal-remote.service which can write the journal too. And give some hints how to figure out how to write *to* the journal. --- diff --git a/man/journalctl.xml b/man/journalctl.xml index 5ca5bc97407..d9ee51b302a 100644 --- a/man/journalctl.xml +++ b/man/journalctl.xml @@ -18,7 +18,7 @@ journalctl - Query the systemd journal + Print log entries from the the systemd journal @@ -32,13 +32,14 @@ Description - journalctl may be used to query the contents of the - systemd1 journal as - written by - systemd-journald.service8. + journalctl is used to print the log entries stored in the journal by + systemd-journald.service8 + and + systemd-journal-remote.service8. + - If called without parameters, it will show the full contents of the journal, starting with the - oldest entry collected. + If called without parameters, it will show the contents of the journal accessible to the calling + user, starting with the oldest entry collected. If one or more match arguments are passed, the output is filtered accordingly. A match is in the format FIELD=VALUE, e.g. _SYSTEMD_UNIT=httpd.service, referring to @@ -93,6 +94,13 @@ When outputting to a tty, lines are colored according to priority: lines of level ERROR and higher are colored red; lines of level NOTICE and higher are highlighted; lines of level DEBUG are colored lighter grey; other lines are displayed normally. + + To write entries to the journal, a few methods may be used. In general, output + from systemd units is automatically connected to the journal, see + systemd-journald.service8. + In addition, + systemd-cat1 + may be used to send messages to the journal directly. @@ -930,6 +938,7 @@ journalctl _SYSTEMD_CGROUP=/user.slice/user-42.slice/session-c1.scopeSee Also systemd1, + systemd-cat1, systemd-journald.service8, systemctl1, coredumpctl1,