Ich führe mehrere CoreOS-Instanzen auf Google Compute Engine (GCE). CoreOS verwendet die Protokollierungsfunktion von Systemd. Wie kann ich alle Protokolle an ein entferntes Ziel senden? Wie ich es verstehe, kommt Systemd Journal nicht mit Remote-Logging-Fähigkeiten. Meine aktuelle Work-around sieht wie folgt aus:Wie soll ich Remote Logging mit Systemd umgehen?
journalctl -o short -f | ncat <addr> <ip>
Mit https://logentries.com mit ihren Token-based input via TCP:
journalctl -o short -f | awk '{ print "<token>", $0; fflush(); }' | ncat data.logentries.com 10000
Gibt es bessere Möglichkeiten?
EDIT:https://medium.com/coreos-linux-for-massive-server-deployments/defb984185c5
'' awk '{Druck "", $ 0; fflush(); } ''' '' '' für jede Protokollzeile vor. –
mattes