I run multiple CoreOS instances on Google Compute Engine (GCE). CoreOS uses systemd's journal logging feature. How can I push all logs to a remote destination? As I understand, systemd journal doesn't come with remote logging abilities. My current work-around looks like this:
journalctl -o short -f | ncat <addr> <ip>
With https://logentries.com using their 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 an client / server process pair.
http://www.freedesktop.org/software/systemd/man/systemd-journal-remote.html