2 .TH "SYSTEMD\-JOURNAL\-GATEWAYD\&.SERVICE" "8" "" "systemd 208" "systemd-journal-gatewayd.service"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
17 .\" disable justification (adjust text to left margin only)
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
23 systemd-journal-gatewayd.service, systemd-journal-gatewayd.socket, systemd-journal-gatewayd \- HTTP server for journal events
26 systemd\-journal\-gatewayd\&.service
28 systemd\-journal\-gatewayd\&.socket
29 .HP \w'\fB/usr/lib/systemd/systemd\-journal\-gatewayd\fR\ 'u
30 \fB/usr/lib/systemd/systemd\-journal\-gatewayd\fR [OPTIONS...]
33 \fBsystemd\-journal\-gatewayd\fR
34 serves journal events over the network\&. Clients must connect using HTTP\&. The server listens on port 19531 by default\&. If
36 is specified, the server expects HTTPS connections\&.
38 The program is started by
40 and expects to receive a single socket\&. Use
41 \fBsystemctl start systemd\-journal\-gatewayd\&.socket\fR
42 to start the service, and
43 \fBsystemctl enable systemd\-journal\-gatewayd\&.socket\fR
44 to have it started on boot\&.
47 The following options are understood:
49 \fB\-\-help\fR, \fB\-h\fR
51 Prints a short help text and exits\&.
56 Prints a short version string and exits\&.
61 Specify the path to a file containing a server certificate in PEM format\&. This option switches
62 \fBsystemd\-journal\-gatewayd\fR
63 into HTTPS mode and must be used together with
69 Specify the path to a file containing a server key in PEM format corresponding to the certificate specified with
74 The following URLs are recognized:
78 Interactive browsing\&.
81 /entries[?option1&option2=value\&.\&.\&.]
83 Retrieval of events in various formats\&.
87 part of the HTTP header determines the format\&. Supported values are described below\&.
91 part of the HTTP header determines the range of events returned\&. Supported values are described below\&.
93 GET parameters can be used to modify what events are returned\&. Supported parameters are described below\&.
98 Return a JSON structure describing the machine\&.
106 { "machine_id" : "8cf7ed9d451ea194b77a9f118f3dc446",
107 "boot_id" : "3d3c9efaf556496a9b04259ee35df7f7",
108 "hostname" : "fedora",
109 "os_pretty_name" : "Fedora 19 (Rawhide)",
110 "virtualization" : "kvm",
120 /fields/\fIFIELD_NAME\fR
122 Return a list of values of this field present in the logs\&.
126 \fBAccept: \fR\fB\fIformat\fR\fR
132 The default\&. Plaintext syslog\-like output, one line per journal entry (like
133 \fBjournalctl \-\-output short\fR)\&.
136 \fBapplication/json\fR
138 Entries are formatted as JSON data structures, one per line (like
139 \fBjournalctl \-\-output json\fR)\&. See
140 \m[blue]\fBJournal JSON Format\fR\m[]\&\s-2\u[1]\d\s+2
141 for more information\&.
144 \fBapplication/event\-stream\fR
146 Entries are formatted as JSON data structures, wrapped in a format suitable for
147 \m[blue]\fBServer\-Sent Events\fR\m[]\&\s-2\u[2]\d\s+2
149 \fBjournalctl \-\-output json\-sse\fR)\&.
152 \fBapplication/vnd\&.fdo\&.journal\fR
154 Entries are serialized into a binary (but mostly text\-based) stream suitable for backups and network transfer (like
155 \fBjournalctl \-\-output export\fR)\&. See
156 \m[blue]\fBJournal Export Format\fR\m[]\&\s-2\u[3]\d\s+2
157 for more information\&.
161 \fBRange: entries=\fR\fB\fIcursor\fR\fR\fB[[:\fR\fB\fInum_skip\fR\fR\fB]:\fR\fB\fInum_entries\fR\fR\fB]\fR
169 is an unsigned integer\&.
171 Range defaults to all available events\&.
172 .SH "URL GET PARAMETERS"
174 Following parameters can be used as part of the URL:
178 wait for new events (like
179 \fBjournalctl \-\-follow\fR, except that the number of events returned is not limited)\&.
184 Test that the specified cursor refers to an entry in the journal\&. Returns just this entry\&.
189 Limit events to the current boot of the system (like
190 \fBjournalctl \-\-this\-\-boot\fR)\&.
193 \fIKEY\fR=\fImatch\fR
195 Match journal fields\&. See
196 \fBsystemd.journal-fields\fR(7)\&.
200 Retrieve events from this boot from local journal in
201 \m[blue]\fBJournal Export Format\fR\m[]\&\s-2\u[3]\d\s+2:
207 curl \-\-silent \-H\*(AqAccept: application/vnd\&.fdo\&.journal\*(Aq \e
208 \*(Aqhttp://localhost:19531/entries?boot\*(Aq
215 Listen for core dumps:
221 curl \*(Aqhttp://localhost:19531/entries?follow&MESSAGE_ID=fc2e22bc6ee647b6b90729ab34a250b1\*(Aq
231 \fBsystemd-journald.service\fR(8),
232 \fBsystemd.journal-fields\fR(7),
237 \%http://www.freedesktop.org/wiki/Software/systemd/json
242 \%https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events
245 Journal Export Format
247 \%http://www.freedesktop.org/wiki/Software/systemd/export