diff options
Diffstat (limited to '')
-rw-r--r-- | man/journalctl.xml | 13 | ||||
-rw-r--r-- | man/systemd.journal-fields.xml | 1 | ||||
-rw-r--r-- | src/journal/journalctl.c | 3 |
3 files changed, 14 insertions, 3 deletions
diff --git a/man/journalctl.xml b/man/journalctl.xml index 0ecab521fa..f6703b06d6 100644 --- a/man/journalctl.xml +++ b/man/journalctl.xml @@ -544,7 +544,12 @@ the unit (<literal>_SYSTEMD_UNIT=<replaceable>UNIT</replaceable></literal>), along with additional matches for messages from systemd and - messages about coredumps for the specified unit.</para> + messages about coredumps for the specified unit. A match + is also added for <literal>_SYSTEMD_SLICE=<replaceable>UNIT</replaceable></literal>, + such that if the provided <replaceable>UNIT</replaceable> is a + <citerefentry><refentrytitle>systemd.slice</refentrytitle><manvolnum>5</manvolnum></citerefentry> + unit, all logs of the children of the slice will be logged. + </para> <para>This parameter can be specified multiple times.</para> </listitem> @@ -558,7 +563,11 @@ (<literal>_SYSTEMD_USER_UNIT=</literal> and <literal>_UID=</literal>) and additional matches for messages from session systemd and messages about coredumps for the - specified unit.</para> + specified unit. A match + is also added for <literal>_SYSTEMD_USER_SLICE=<replaceable>UNIT</replaceable></literal>, + such that if the provided <replaceable>UNIT</replaceable> is a + <citerefentry><refentrytitle>systemd.slice</refentrytitle><manvolnum>5</manvolnum></citerefentry> + unit, all logs of the children of the unit will be logged.</para> <para>This parameter can be specified multiple times.</para> </listitem> diff --git a/man/systemd.journal-fields.xml b/man/systemd.journal-fields.xml index fa374bf0f8..c11ec050e5 100644 --- a/man/systemd.journal-fields.xml +++ b/man/systemd.journal-fields.xml @@ -188,6 +188,7 @@ <term><varname>_SYSTEMD_SLICE=</varname></term> <term><varname>_SYSTEMD_UNIT=</varname></term> <term><varname>_SYSTEMD_USER_UNIT=</varname></term> + <term><varname>_SYSTEMD_USER_SLICE=</varname></term> <term><varname>_SYSTEMD_SESSION=</varname></term> <term><varname>_SYSTEMD_OWNER_UID=</varname></term> diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 764b3c217e..6d6bb1cf63 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1539,7 +1539,8 @@ static int get_possible_units( "_SYSTEMD_USER_UNIT\0" \ "USER_UNIT\0" \ "COREDUMP_USER_UNIT\0" \ - "OBJECT_SYSTEMD_USER_UNIT\0" + "OBJECT_SYSTEMD_USER_UNIT\0" \ + "_SYSTEMD_USER_SLICE\0" static int add_units(sd_journal *j) { _cleanup_strv_free_ char **patterns = NULL; |