I have configured docker to use the syslog log driver. My daemon.json looks like this:
{
"log-driver": "syslog",
"log-opts": {
"syslog-address": "tcp://192.168.1.10:1514",
"mode": "non-blocking",
"tag": "{{.ImageName}}/{{.Name}}"
}
}
According to docker docs on the tag parameter, this should produce an output that includes the hostname of the host device. This does not happen - my logs look like this (truncated):
<27>Dec 22 19:27:44 authelia/authelia/authelia[3693936]: time="2022-12-22T19:27:44-05:00" level=info msg="...
I could just write the hostname into the tag parameter, but I'd like to use this config on many machines. Am I missing something?