NOTE: this overrides the standard syslog adapter (e.g. cannot include both in your modules.go for the custom image)
A minimalistic adapter for github.com/gliderlabs/logspout to write to Syslog+UDP with a JSON payload in the msg
field of the Syslog message.
Follow the instructions in https://github.com/gliderlabs/logspout/tree/master/custom on how to build your own Logspout container with custom modules. Basically just copy the contents of the custom folder and include:
import (
_ "github.com/dkiser/logspout-syslog-json/adapters/json"
_ "github.com/dkiser/logspout-syslog-json/adapters/syslog"
_ "github.com/gliderlabs/logspout/transports/udp"
)
in modules.go.
Use by setting ROUTE_URIS=syslog//host:port
to the Syslog host and port for UDP.