Niels Hofmans:
> Hello guys,
>
> Just to let you know, it works perfect with the following piece of golang
> code I wrote: https://gist.github.com/HazCod/35d705ebf87704b976ceab58ba20ca21
> <https://gist.github.com/HazCod/35d705ebf87704b976ceab58ba20ca21>
>
> So no need for full fledged syslog-ng in my container, only this binary that
> listens and prints to stdout.
I think that it is better to mount the host's /dev/log into the
container because Postfix can produce intense bursts of logs.
Using syslog (in the host) allows existing tools to be used for
Postfix log analysis.
Also, you are gratuitously truncating Postfix logs to 1024-byte
lines, and you will drop logs when the stdout receiver (dockerd
infrastructure) can't keep up.
I do not recommennd that people use your solution.
Wietse