summaryrefslogtreecommitdiff
path: root/man/journalctl.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-09 17:05:29 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-09 17:05:29 +0200
commitb6a345143bf6ffdc87a7149015f75c03be440b10 (patch)
tree01678dafc89ae8d68fe61f86822b23af6689639a /man/journalctl.xml
parent5b4c61cd0b7d35f5a905c83a0ee111a1876a7873 (diff)
journalctl: support device node matches as shortcut
Diffstat (limited to 'man/journalctl.xml')
-rw-r--r--man/journalctl.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/man/journalctl.xml b/man/journalctl.xml
index cd17ca6ae7..3cfda5b84b 100644
--- a/man/journalctl.xml
+++ b/man/journalctl.xml
@@ -86,6 +86,15 @@
command line all matches before and after are combined
in a disjunction (i.e. logical OR).</para>
+ <para>As shortcuts for a few types of field/value
+ matches file paths may be specified. If a file path
+ refers to an executable file, this is equivalent to an
+ <literal>_EXE=</literal> match for the canonicalized
+ binary path. Similar, if a path refers to a device
+ node, this is equivalent to a
+ <literal>_KERNEL_DEVICE=</literal> match for the
+ device.</para>
+
<para>Output is interleaved from all accessible
journal files, whether they are rotated or currently
being written, and regardless whether they belong to the
@@ -357,6 +366,14 @@
<programlisting>journalctl _SYSTEMD_UNIT=avahi-daemon.service _PID=28097 + _SYSTEMD_UNIT=dbus.service</programlisting>
+ <para>Show all logs generated by the D-Bus executable:</para>
+
+ <programlisting>journalctl /usr/bin/dbus-daemon</programlisting>
+
+ <para>Show all logs of the kernel device node <filename>/dev/sda</filename>:</para>
+
+ <programlisting>journalctl /dev/sda</programlisting>
+
</refsect1>
<refsect1>