]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-remote: add an example to man
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 24 Jan 2016 06:54:05 +0000 (15:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 24 Jan 2016 07:12:13 +0000 (16:12 +0900)
man/systemd-journal-remote.xml

index ebaca2657f48859be0c446811bbe6d4e84d81a1a..3899f175d4848989abf7b82d5904f7baf737f35f 100644 (file)
@@ -293,15 +293,24 @@ journalctl -o export | systemd-journal-remote -o /tmp/dir -
     </programlisting>
     </para>
 
-    <para>Retrieve events from a remote
+    <para>Retrieve all available events from a remote
     <citerefentry><refentrytitle>systemd-journal-gatewayd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
     instance and store them in
-    <filename>/var/log/journal/some.host/remote-some~host.journal</filename>:
+    <filename>/var/log/journal/remote/remote-some.host.journal</filename>:
     <programlisting>
 systemd-journal-remote --url http://some.host:19531/
     </programlisting>
     </para>
-  </refsect1>
+
+    <para>Retrieve current boot events and wait for new events from a remote
+    <citerefentry><refentrytitle>systemd-journal-gatewayd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
+    instance, and store them in
+    <filename>/var/log/journal/remote/remote-some.host.journal</filename>:
+    <programlisting>
+systemd-journal-remote --url http://some.host:19531/entries?boot&amp;follow
+    </programlisting>
+    </para>
+</refsect1>
 
   <refsect1>
     <title>See Also</title>