Journald Remote Logging
Zur Navigation springen
Zur Suche springen
Remote Logging
Benötigte Pakete: systemd-journal-remote
Push Betrieb
Receiver
Zunächst plain HTTP. Im systemd-journal-remote.socket steht der ListenStream=19532 als Standard-Port.
- systemctl edit systemd-journal-remote.service
HTTPS durch HTTP ersetzen. Eigentlich keine gute Idee ;-)
[Service] ExecStart= ExecStart=...--listen-http...
- systemctl enable --now systemd-journal-remote.socket
- ss -lnp '( sport = 19532 )'
Remote-Logs mit journalctl anzeigen:
- journalctl -D /var/log/journal/remote
Sender
cat /etc/systemd/journal-upload.conf
[Upload] URL=http://10.0.0.1:19532
- systemctl enable --now systemd-journal-upload.service