docker - How should I handle remote logging with systemd? -
i run multiple coreos instances on google compute engine (gce). coreos uses systemd's journal logging feature. how can push logs remote destination? understand, systemd journal doesn't come remote logging abilities. current work-around looks this:
journalctl -o short -f | ncat <addr> <ip> with https://logentries.com using token-based input via tcp:
journalctl -o short -f | awk '{ print "<token>", $0; fflush(); }' | ncat data.logentries.com 10000 are there better ways?
edit: https://medium.com/coreos-linux-for-massive-server-deployments/defb984185c5
systemd past version 216 includes remote logging capabilities, via client / server process pair.
http://www.freedesktop.org/software/systemd/man/systemd-journal-remote.html
Comments
Post a Comment