journal-remote.conf
systemd
journal-remote.conf
5
journal-remote.conf
journal-remote.conf.d
Configuration files for the service accepting remote journal uploads
/etc/systemd/journal-remote.conf, /run/systemd/journal-remote.conf, /usr/local/lib/systemd/journal-remote.conf, /usr/lib/systemd/journal-remote.conf, /etc/systemd/journal-remote.conf.d/*.conf, /run/systemd/journal-remote.conf.d/*.conf, /usr/local/lib/systemd/journal-remote.conf.d/*.conf, /usr/lib/systemd/journal-remote.conf.d/*.conf
Description
These files configure various parameters of systemd-journal-remote.service(8). See systemd.syntax(7) for a general description of the syntax.
Options
All options are configured in the [Remote] section:
Seal=
Periodically sign the data in the journal using Forward Secure Sealing.
SplitMode=
One of host or none.
ServerKeyFile=
SSL key in PEM format.
ServerCertificateFile=
SSL certificate in PEM format.
TrustedCertificateFile=
SSL CA certificate.
AddClientCertificateSubject=
Takes a boolean. If enabled, records the verified HTTPS client's full certificate subject in _REMOTE_CERTIFICATE_SUBJECT=. All incoming copies of this field are removed, including from non-HTTPS inputs and imported files. Without a verified client certificate, the field is omitted. Certificate verification and connection acceptance are unchanged. Defaults to no, leaving incoming fields unchanged.
MaxUse=; KeepFree=; MaxFileSize=; MaxFiles=
These are analogous to SystemMaxUse=, SystemKeepFree=, SystemMaxFileSize= and SystemMaxFiles= in journald.conf(5).
MaxUse= controls how much disk space the systemd-journal-remote may use up at most. KeepFree= controls how much disk space systemd-journal-remote shall leave free for other uses. systemd-journal-remote will respect both limits and use the smaller of the two values.
MaxFiles= controls how many individual journal files to keep at most. Note that only archived files are deleted to reduce the number of files until this limit is reached; active files will stay around. This means that, in effect, there might still be more journal files around in total than this limit after a vacuuming operation is complete.
Compression=
Configurs acceptable compression algorithms to be announced through Accept-Encoding HTTP header. The header suggests systemd-journal-upload to compress data to be sent. Takes a space separated list of compression algorithms, or no. Supported algorithms are zstd, xz, or lz4. When a list of algorithms is specified, Accept-Encoding header will be constructed with priorities based on the order of the algorithms in the list. When no, Accept-Encoding header will not be sent. This option can be specified multiple times. If an empty string is assigned, then all the previous assignments are cleared. Defaults to unset and all supported compression algorithms will be listed in the header.
Example:
Compression=zstd lz4
See Also
journald.conf(5), systemd(1), systemd-journal-remote.service(8), systemd-journald.service(8)
谢谢你的反馈!