2 .TH "SYSTEMD\-JOURNAL\-REMOTE" "8" "" "systemd 217" "systemd-journal-remote"
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-remote \- Receive journal messages over the network
25 .HP \w'\fBsystemd\-journal\-remote\fR\ 'u
26 \fBsystemd\-journal\-remote\fR [OPTIONS...] [\-o/\-\-output=\fIDIR\fR|\fIFILE\fR] [SOURCES...]
29 systemd\-journal\-remote
30 is a command to receive serialized journal events and store them to the journal\&. Input streams are in the
31 \m[blue]\fBJournal Export Format\fR\m[]\&\s-2\u[1]\d\s+2, i\&.e\&. like the output from
32 \fBjournalctl \-\-output=export\fR\&. For transport over the network, this serialized stream is usually carried over an HTTPS connection\&.
35 Sources can be either "active" (\fBsystemd\-journal\-remote\fR
36 requests and pulls the data), or "passive" (\fBsystemd\-journal\-remote\fR
37 waits for a connection and then receives events pushed by the other side)\&.
39 \fBsystemd\-journal\-remote\fR
40 can read more than one event stream at a time\&. They will be interleaved in the output file\&. In case of "active" connections, each "source" is one stream, and in case of "passive" connections, each connection can result in a separate stream\&. Sockets can be configured in "accept" mode (i\&.e\&. only one connection), or "listen" mode (i\&.e\&. multiple connections, each resulting in a stream)\&.
42 When there are no more connections, and no more can be created (there are no listening sockets), then
43 \fBsystemd\-journal\-remote\fR
46 Active sources can be specified in the following ways:
51 is given as a positional argument, events will be read from standard input\&. Other positional arguments will be treated as filenames to open and read from\&.
54 \fB\-\-url=\fR\fB\fIADDRESS\fR\fR
57 \fB\-\-url=\fR\fB\fIADDRESS\fR\fR
58 option, events will be retrieved using HTTP from
59 \fIADDRESS\fR\&. This URL should refer to the root of a remote
60 \fBsystemd-journal-gatewayd\fR(8)
62 \m[blue]\fBhttp://some\&.host:19531/\fR\m[]
64 \m[blue]\fBhttps://some\&.host:19531/\fR\m[])\&.
67 Passive sources can be specified in the following ways:
69 \fB\-\-listen\-raw=\fR\fB\fIADDRESS\fR\fR
72 must be an address suitable for
75 \fBsystemd.socket\fR(5))\&.
76 \fBsystemd\-journal\-remote\fR
77 will listen on this socket for connections\&. Each connection is expected to be a stream of journal events\&.
80 \fB\-\-listen\-http=\fR\fB\fIADDRESS\fR\fR, \fB\-\-listen\-https=\fR\fB\fIADDRESS\fR\fR
83 must be either a negative integer, in which case it will be interpreted as the (negated) file descriptor number, or an address suitable for
86 \fBsystemd.socket\fR(5))\&. In the first case, matching file descriptor must be inherited through
87 \fI$LISTEN_FDS\fR/\fI$LISTEN_PID\fR\&. In the second case, an HTTP or HTTPS server will be spawned on this port, respectively for
88 \fB\-\-listen\-http\fR
90 \fB\-\-listen\-https\fR\&. Currenntly, only POST requests to
93 "Content\-Type: application/vnd\&.fdo\&.journal"
99 \fBsystemd\-journal\-remote\fR
101 \fI$LISTEN_FDS\fR/\fI$LISTEN_PID\fR
102 protocol\&. Open sockets inherited through socket activation behave like those opened with
103 \fB\-\-listen\-raw=\fR
104 described above, unless they are specified as an argument in
105 \fB\-\-listen\-http=\-\fR\fB\fIn\fR\fR
107 \fB\-\-listen\-https=\-\fR\fB\fIn\fR\fR
108 above\&. In the latter case, an HTTP or HTTPS server will be spawned using this descriptor and connections must be made over the HTTP protocol\&.
112 The location of the output journal can be specified with
115 \fB\-\-output=\fR\&. For "active" sources, this option is required\&.
117 \fB\-\-output=\fR\fB\fIFILE\fR\fR
119 Will write to this journal file\&. The filename must end with
120 \&.journal\&. The file will be created if it does not exist\&. If necessary (journal file full, or corrupted), the file will be renamed following normal journald rules and a new journal file will be created in its stead\&.
123 \fB\-\-output=\fR\fB\fIDIR\fR\fR
125 Will create journal files underneath directory
126 \fIDIR\fR\&. The directory must exist\&. If necessary (journal files over size, or corrupted), journal files will be rotated following normal journald rules\&. Names of files underneath
128 will be generated using the rules described below\&.
133 is not used, the output directory
134 /var/log/journal/remote/
135 will be used\&. In case the output file is not specified, journal files will be created underneath the selected directory\&. Files will be called
136 remote\-\fIhostname\fR\&.journal, where the
138 part is the escaped hostname of the source endpoint of the connection, or the numerical address if the hostname cannot be determined\&.
140 In case of "active" sources, the output file name must always be given explicitly\&.
143 The following options are understood:
145 \fB\-\-split\-mode\fR
150 \fBhost\fR\&. For the first, only one output journal file is used\&. For the latter, a separate output file is used, based on the hostname of the other endpoint of a connection\&.
152 In case of "active" sources, the output file name must always be given explicitly and only
157 \fB\-\-compress\fR, \fB\-\-no\-compress\fR
159 Compress or not, respectively, the data in the journal using XZ\&.
162 \fB\-\-seal\fR, \fB\-\-no\-seal\fR
164 Periodically sign or not, respectively, the data in the journal using Forward Secure Sealing\&.
167 \fB\-\-getter=\fR\fB\fIPROG \-\-option1 \-\-option2\fR\fR
169 Program to invoke to retrieve data\&. The journal event stream must be generated on standard output\&.
177 \-\-getter=\*(Aqcurl "\-HAccept: application/vnd\&.fdo\&.journal" https://some\&.host:19531/\*(Aq
187 \-\-getter=\*(Aqwget \-\-header="Accept: application/vnd\&.fdo\&.journal" \-O\- https://some\&.host:19531/\*(Aq
194 \fB\-h\fR, \fB\-\-help\fR
196 Print a short help text and exit\&.
201 Print a short version string and exit\&.
205 Copy local journal events to a different journal directory:
211 journalctl \-o export | systemd\-journal\-remote \-o /tmp/dir \-
218 Retrieve events from a remote
219 \fBsystemd-journal-gatewayd\fR(8)
220 instance and store them in
221 /var/log/journal/some\&.host/remote\-some~host\&.journal:
227 systemd\-journal\-remote \-\-url http://some\&.host:19531/
236 \fBsystemd-journal-upload\fR(8),
238 \fBsystemd-journald.service\fR(8),
239 \fBsystemd-journal-gatewayd.service\fR(8)
242 Journal Export Format
244 \%http://www.freedesktop.org/wiki/Software/systemd/export
247 http://some.host:19531/
249 https://some.host:19531/