docker run --log-driver syslog --log-opt syslog-address=udp://10.0.0.5:514 myimage

Category: Docker

docker run --log-driver syslog --log-opt syslog-address=udp://10.0.0.5:514 myimage

Send container logs to a syslog server

Routes the container's stdout and stderr to a remote syslog server at udp://10.0.0.5:514 instead of json-file. syslog-address sets the endpoint; without it, the local syslog is used. Centralizing logs eases search across hosts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.