systemd-journal-remote(8)


NAME

   systemd-journal-remote - Receive journal messages over the network

SYNOPSIS

   systemd-journal-remote [OPTIONS...] [-o/--output=DIR|FILE] [SOURCES...]

DESCRIPTION

   systemd-journal-remote is a command to receive serialized journal
   events and store them to the journal. Input streams are in the Journal
   Export Format[1], i.e. like the output from journalctl --output=export.
   For transport over the network, this serialized stream is usually
   carried over an HTTPS connection.

SOURCES

   Sources can be either "active" (systemd-journal-remote requests and
   pulls the data), or "passive" (systemd-journal-remote waits for a
   connection and then receives events pushed by the other side).

   systemd-journal-remote 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).

   When there are no more connections, and no more can be created (there
   are no listening sockets), then systemd-journal-remote will exit.

   Active sources can be specified in the following ways:

       When - 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.

   --url=ADDRESS
       With the --url=ADDRESS option, events will be retrieved using HTTP
       from ADDRESS. This URL should refer to the root of a remote
       systemd-journal-gatewayd(8) instance, e.g. http://some.host:19531/
       or https://some.host:19531/.

   Passive sources can be specified in the following ways:

   --listen-raw=ADDRESS
       ADDRESS must be an address suitable for ListenStream= (cf.
       systemd.socket(5)).  systemd-journal-remote will listen on this
       socket for connections. Each connection is expected to be a stream
       of journal events.

   --listen-http=ADDRESS, --listen-https=ADDRESS
       ADDRESS must be either a negative integer, in which case it will be
       interpreted as the (negated) file descriptor number, or an address
       suitable for ListenStream= (c.f.  systemd.socket(5)). In the first
       case, matching file descriptor must be inherited through
       $LISTEN_FDS/$LISTEN_PID. In the second case, an HTTP or HTTPS
       server will be spawned on this port, respectively for --listen-http
       and --listen-https. Currently, only POST requests to /upload with
       "Content-Type: application/vnd.fdo.journal" are supported.

   $LISTEN_FDS
       systemd-journal-remote supports the $LISTEN_FDS/$LISTEN_PID
       protocol. Open sockets inherited through socket activation behave
       like those opened with --listen-raw= described above, unless they
       are specified as an argument in --listen-http=-n or
       --listen-https=-n 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.

SINKS

   The location of the output journal can be specified with -o or
   --output=. For "active" sources, this option is required.

   --output=FILE
       Will write to this journal file. The filename must end with
       .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.

   --output=DIR
       Will create journal files underneath directory DIR. 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 DIR will be generated using the rules
       described below.

   If --output= is not used, the output directory /var/log/journal/remote/
   will be used. In case the output file is not specified, journal files
   will be created underneath the selected directory. Files will be called
   remote-hostname.journal, where the hostname part is the escaped
   hostname of the source endpoint of the connection, or the numerical
   address if the hostname cannot be determined.

   In case of "active" sources, the output file name must always be given
   explicitly.

OPTIONS

   The following options are understood:

   --split-mode
       One of none or host. 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.

       In case of "active" sources, the output file name must always be
       given explicitly and only none is allowed.

   --compress [BOOL]
       If this is set to "yes" then compress the data in the journal using
       XZ. The default is "yes".

   --seal [BOOL]
       If this is set to "yes" then periodically sign the data in the
       journal using Forward Secure Sealing. The default is "no".

   --getter=PROG --option1 --option2
       Program to invoke to retrieve data. The journal event stream must
       be generated on standard output.

       Examples:

           --getter='curl "-HAccept: application/vnd.fdo.journal" https://some.host:19531/'

           --getter='wget --header="Accept: application/vnd.fdo.journal" -O- https://some.host:19531/'

   -h, --help
       Print a short help text and exit.

   --version
       Print a short version string and exit.

EXAMPLES

   Copy local journal events to a different journal directory:

       journalctl -o export | systemd-journal-remote -o /tmp/dir -

   Retrieve all available events from a remote systemd-journal-gatewayd(8)
   instance and store them in
   /var/log/journal/remote/remote-some.host.journal:

       systemd-journal-remote --url http://some.host:19531/

   Retrieve current boot events and wait for new events from a remote
   systemd-journal-gatewayd(8) instance, and store them in
   /var/log/journal/remote/remote-some.host.journal:

       systemd-journal-remote --url http://some.host:19531/entries?boot&follow

SEE ALSO

   systemd-journal-upload(8), journalctl(1), systemd-journald.service(8),
   systemd-journal-gatewayd.service(8) journal-remote.conf(5)

NOTES

    1. Journal Export Format
       http://www.freedesktop.org/wiki/Software/systemd/export





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.