'\" t .TH "SYSTEMD\-JOURNAL\-UPLOAD\&.SERVICE" "8" "" "systemd 255" "systemd-journal-upload.service" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" systemd-journal-upload.service, systemd-journal-upload \- Send journal messages over the network .SH "SYNOPSIS" .PP systemd\-journal\-upload\&.service .HP \w'\fB/usr/lib/systemd/systemd\-journal\-upload\fR\ 'u \fB/usr/lib/systemd/systemd\-journal\-upload\fR [OPTIONS...] [\-u/\-\-url=\fIURL\fR] [SOURCES...] .SH "DESCRIPTION" .PP \fBsystemd\-journal\-upload\fR will upload journal entries to the URL specified with \fB\-\-url=\fR\&. This program reads journal entries from one or more journal files, similarly to \fBjournalctl\fR(1)\&. Unless limited by one of the options specified below, all journal entries accessible to the user the program is running as will be uploaded, and then the program will wait and send new entries as they become available\&. .PP \fBsystemd\-journal\-upload\fR transfers the raw content of journal file and uses HTTP as a transport protocol\&. .PP systemd\-journal\-upload\&.service is a system service that uses \fBsystemd\-journal\-upload\fR to upload journal entries to a server\&. It uses the configuration in \fBjournal-upload.conf\fR(5)\&. At least the \fIURL=\fR option must be specified\&. .SH "OPTIONS" .PP \fB\-u\fR, \fB\-\-url=\fR\fB[https://]\fR\fB\fIURL\fR\fR\fB[:\fR\fB\fIPORT\fR\fR\fB]\fR, \fB\-\-url=\fR\fB[http://]\fR\fB\fIURL\fR\fR\fB[:\fR\fB\fIPORT\fR\fR\fB]\fR .RS 4 Upload to the specified address\&. \fIURL\fR may specify either just the hostname or both the protocol and hostname\&. \fBhttps\fR is the default\&. The port number may be specified after a colon (":"), otherwise \fB19532\fR will be used by default\&. .sp Added in version 239\&. .RE .PP \fB\-\-system\fR, \fB\-\-user\fR .RS 4 Limit uploaded entries to entries from system services and the kernel, or to entries from services of current user\&. This has the same meaning as \fB\-\-system\fR and \fB\-\-user\fR options for \fBjournalctl\fR(1)\&. If neither is specified, all accessible entries are uploaded\&. .sp Added in version 239\&. .RE .PP \fB\-m\fR, \fB\-\-merge\fR .RS 4 Upload entries interleaved from all available journals, including other machines\&. This has the same meaning as \fB\-\-merge\fR option for \fBjournalctl\fR(1)\&. .sp Added in version 239\&. .RE .PP \fB\-\-namespace=\fR\fB\fINAMESPACE\fR\fR .RS 4 Takes a journal namespace identifier string as argument\&. Upload entries from the specified journal namespace \fINAMESPACE\fR instead of the default namespace\&. This has the same meaning as \fB\-\-namespace=\fR option for \fBjournalctl\fR(1)\&. .sp Added in version 254\&. .RE .PP \fB\-D\fR, \fB\-\-directory=\fR\fB\fIDIR\fR\fR .RS 4 Takes a directory path as argument\&. Upload entries from the specified journal directory \fIDIR\fR instead of the default runtime and system journal paths\&. This has the same meaning as \fB\-\-directory=\fR option for \fBjournalctl\fR(1)\&. .sp Added in version 239\&. .RE .PP \fB\-\-file=\fR\fB\fIGLOB\fR\fR .RS 4 Takes a file glob as an argument\&. Upload entries from the specified journal files matching \fIGLOB\fR instead of the default runtime and system journal paths\&. May be specified multiple times, in which case files will be suitably interleaved\&. This has the same meaning as \fB\-\-file=\fR option for \fBjournalctl\fR(1)\&. .sp Added in version 239\&. .RE .PP \fB\-\-cursor=\fR .RS 4 Upload entries from the location in the journal specified by the passed cursor\&. This has the same meaning as \fB\-\-cursor=\fR option for \fBjournalctl\fR(1)\&. .sp Added in version 239\&. .RE .PP \fB\-\-after\-cursor=\fR .RS 4 Upload entries from the location in the journal \fIafter\fR the location specified by the this cursor\&. This has the same meaning as \fB\-\-after\-cursor=\fR option for \fBjournalctl\fR(1)\&. .sp Added in version 239\&. .RE .PP \fB\-\-save\-state\fR[=\fIPATH\fR] .RS 4 Upload entries from the location in the journal \fIafter\fR the location specified by the cursor saved in file at \fIPATH\fR (/var/lib/systemd/journal\-upload/state by default)\&. After an entry is successfully uploaded, update this file with the cursor of that entry\&. .sp Added in version 239\&. .RE .PP \fB\-\-follow\fR[=\fIBOOL\fR] .RS 4 If set to yes, then \fBsystemd\-journal\-upload\fR waits for input\&. .sp Added in version 239\&. .RE .PP \fB\-\-key=\fR .RS 4 Takes a path to a SSL key file in PEM format, or \fB\-\fR\&. If \fB\-\fR is set, then client certificate authentication checking will be disabled\&. Defaults to /etc/ssl/private/journal\-upload\&.pem\&. .sp Added in version 239\&. .RE .PP \fB\-\-cert=\fR .RS 4 Takes a path to a SSL certificate file in PEM format, or \fB\-\fR\&. If \fB\-\fR is set, then client certificate authentication checking will be disabled\&. Defaults to /etc/ssl/certs/journal\-upload\&.pem\&. .sp Added in version 239\&. .RE .PP \fB\-\-trust=\fR .RS 4 Takes a path to a SSL CA certificate file in PEM format, or \fB\-\fR/\fBall\fR\&. If \fB\-\fR/\fBall\fR is set, then certificate checking will be disabled\&. Defaults to /etc/ssl/ca/trusted\&.pem\&. .sp Added in version 239\&. .RE .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 Print a short help text and exit\&. .RE .PP \fB\-\-version\fR .RS 4 Print a short version string and exit\&. .RE .SH "EXIT STATUS" .PP On success, 0 is returned; otherwise, a non\-zero failure code is returned\&. .SH "EXAMPLES" .PP \fBExample\ \&1.\ \&Setting up certificates for authentication\fR .PP Certificates signed by a trusted authority are used to verify that the server to which messages are uploaded is legitimate, and vice versa, that the client is trusted\&. .PP A suitable set of certificates can be generated with \fBopenssl\fR\&. Note, 2048 bits of key length is minimally recommended to use for security reasons: .sp .if n \{\ .RS 4 .\} .nf openssl req \-newkey rsa:2048 \-days 3650 \-x509 \-nodes \e \-out ca\&.pem \-keyout ca\&.key \-subj \*(Aq/CN=Certificate authority/\*(Aq cat >ca\&.conf <serial SERVER=server CLIENT=client openssl req \-newkey rsa:2048 \-nodes \-out $SERVER\&.csr \-keyout $SERVER\&.key \-subj "/CN=$SERVER/" openssl ca \-batch \-config ca\&.conf \-notext \-in $SERVER\&.csr \-out $SERVER\&.pem openssl req \-newkey rsa:2048 \-nodes \-out $CLIENT\&.csr \-keyout $CLIENT\&.key \-subj "/CN=$CLIENT/" openssl ca \-batch \-config ca\&.conf \-notext \-in $CLIENT\&.csr \-out $CLIENT\&.pem .fi .if n \{\ .RE .\} .PP Generated files ca\&.pem, server\&.pem, and server\&.key should be installed on server, and ca\&.pem, client\&.pem, and client\&.key on the client\&. The location of those files can be specified using \fITrustedCertificateFile=\fR, \fIServerCertificateFile=\fR, and \fIServerKeyFile=\fR in /etc/systemd/journal\-remote\&.conf and /etc/systemd/journal\-upload\&.conf, respectively\&. The default locations can be queried by using \fBsystemd\-journal\-remote \-\-help\fR and \fBsystemd\-journal\-upload \-\-help\fR\&. .SH "SEE ALSO" .PP \fBjournal-upload.conf\fR(5), \fBsystemd-journal-remote.service\fR(8), \fBjournalctl\fR(1), \fBsystemd-journald.service\fR(8), \fBsystemd-journal-gatewayd.service\fR(8)