1 include::../attributes.adoc[]
6 :copycss: {css_dir}/{stylesheet}
10 sdjournal - Provide an interface to capture systemd journal entries.
18 [ *--extcap-interfaces* ]
20 [ *--extcap-interface*=<interface> ]
23 [ *--fifo*=<path to file or pipe> ]
24 [ *--start-from*=<entry count> ]
28 *sdjournal* is an extcap tool that allows one to capture systemd
29 journal entries. It can be used to correlate system events with
39 Print program arguments.
42 Print program version.
45 List available interfaces.
47 --extcap-interface=<interface>::
48 Use specified interfaces.
51 List DLTs of specified interface.
54 List configuration options of specified interface.
57 Start capturing from specified interface and write raw packet data to the location specified by --fifo.
59 --fifo=<path to file or pipe>::
60 Save captured packet to file or send it through pipe.
62 --start-from=<entry count>::
65 Start from the last <entry count> entries, similar to the
66 "-n" or "--lines" argument for the tail(1) command. Values prefixed
67 with a *+* sign start from the beginning of the journal, otherwise
68 the count starts from the end. The default value is 10. To include
74 To see program arguments:
78 To see program version:
84 sdjournal --extcap-interfaces
86 Only one interface (sdjournal) is supported.
89 interface {value=sdjournal}{display=systemd journal capture}
91 To see interface DLTs:
93 sdjournal --extcap-interface=sdjournal --extcap-dlts
96 dlt {number=147}{name=sdjournal}{display=USER0}
98 To see interface configuration options:
100 sdjournal --extcap-interface=sdjournal --extcap-config
103 arg {number=0}{call=--start-from}{display=Starting position}{type=string}
104 {tooltip=The journal starting position. Values with a leading "+" start from the beginning, similar to the "tail" command}
108 sdjournal --extcap-interface=sdjournal --fifo=/tmp/sdjournal.pcap --capture
110 To capture all entries since the system was booted:
112 sdjournal --extcap-interface=sdjournal --fifo=/tmp/sdjournal.pcap --capture --start-from +0
114 NOTE: To stop capturing CTRL+C/kill/terminate the application.
118 xref:wireshark.html[wireshark](1), xref:tshark.html[tshark](1), xref:dumpcap.html[dumpcap](1), xref:extcap.html[extcap](4), xref:https://www.tcpdump.org/manpages/tcpdump.1.html[tcpdump](1)
122 *sdjournal* is part of the *Wireshark* distribution. The latest version
123 of *Wireshark* can be found at https://www.wireshark.org.
125 HTML versions of the Wireshark project man pages are available at
126 https://www.wireshark.org/docs/man-pages.
132 Gerald Combs <gerald[AT]wireshark.org>