Journald Remote Logging: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Remote Logging= Benötigte Pakete: systemd-journal-remote =Push Betrieb= ==Receiver== Zunächst plain HTTP. Im systemd-journal-remote.socket steht der Listen…“)
 
 
Zeile 6: Zeile 6:
 
Zunächst plain HTTP. Im systemd-journal-remote.socket steht der ListenStream=19532 als Standard-Port.
 
Zunächst plain HTTP. Im systemd-journal-remote.socket steht der ListenStream=19532 als Standard-Port.
  
Üsystemctl edit systemd-journal-remote.service
+
*systemctl edit systemd-journal-remote.service
  
 
HTTPS durch HTTP ersetzen. Eigentlich keine gute Idee ;-)
 
HTTPS durch HTTP ersetzen. Eigentlich keine gute Idee ;-)
Zeile 16: Zeile 16:
 
*systemctl enable --now systemd-journal-remote.socket
 
*systemctl enable --now systemd-journal-remote.socket
 
*ss -lnp '( sport = 19532 )'
 
*ss -lnp '( sport = 19532 )'
 +
 
=Remote-Logs mit journalctl anzeigen:=
 
=Remote-Logs mit journalctl anzeigen:=
 
*journalctl -D /var/log/journal/remote
 
*journalctl -D /var/log/journal/remote

Aktuelle Version vom 4. August 2025, 17:18 Uhr

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