systemd-journal-upload on AlmaLinux

AlmaLinux 10.1 6.12.0 on amd64 (host “3060t0”) with systemd 257-13.el10

See systemd-journal-remote(8), journal-remote.conf(5) for detailed setup instructions. Consider this a minimal config example. See this in my NixOS configuration.

Install the systemd-journal-remote package:

sudo dnf install -y systemd-journal-remote

Populate the configuration file. Adjust to fit. I’m pulling all of my logs into a VictoriaLogs instance; you can use another machine running journal-remote or any other log server that takes the journal-upload format.

If you intend to use port 443, you’ll need to modify SELinux policy. I’ve made my VictoriaLogs server listen on the default port (19532) for systemd-journal-upload instead.

sudo tee /etc/systemd/journal-upload.conf > /dev/null << 'EOT'
[Upload]
# Compression = zstd:3 # not supported until systemd 258, n/a for alma 10
# NetworkTimeoutSec is unset
ServerCertificateFile = -
ServerKeyFile = -
TrustedCertificateFile = -
URL = https://victorialogs.lab.wporter.org:19532/insert/journald
EOT

Enable the service:

sudo systemctl enable --now systemd-journal-upload