I am trying to use log driver syslog and have written following configuration in docker-config.yml file
–
logging:
driver: syslog
options:
syslog-address: “udp://localhost:514”
docker run --log-driver syslog --log-opt syslog-address=udp://localhost:514 --log-opt tag=expconf app-agentconf
seems to not giving any error.
But now where is log being saved?
How to direct syslog to store the log in a specific file?
docker logs containerid still gives me the log. I was expecting if I use syslog docker logs will not work.