Loggly as a CoreOS service

I spent a lot of today figuring out the best way to send the stream of logs from CoreOS to loggly, because it requires structured data and then sending it from a service on systemd.

So this was my solution for whoever it can work for.

Any comment goes best to my twitter here.