|
@@ -81,6 +81,8 @@ The following logging options are supported for the `syslog` logging driver:
|
|
|
--log-opt syslog-tls-skip-verify=true
|
|
|
--log-opt tag="mailer"
|
|
|
--log-opt syslog-format=[rfc5424|rfc5424micro|rfc3164]
|
|
|
+ --log-opt env=ENV1,ENV2,ENV3
|
|
|
+ --log-opt labels=label1,label2,label3
|
|
|
|
|
|
`syslog-address` specifies the remote syslog server address where the driver connects to.
|
|
|
If not specified it defaults to the local unix socket of the running system.
|
|
@@ -128,6 +130,7 @@ This option is ignored if the address protocol is not `tcp+tls`.
|
|
|
This verification is enabled by default, but it can be overriden by setting
|
|
|
this option to `true`. This option is ignored if the address protocol is not `tcp+tls`.
|
|
|
|
|
|
+`tag` configures a string that is appended to the APP-NAME in the syslog message.
|
|
|
By default, Docker uses the first 12 characters of the container ID to tag log messages.
|
|
|
Refer to the [log tag option documentation](log_tags.md) for customizing
|
|
|
the log tag format.
|
|
@@ -138,6 +141,11 @@ Specify rfc3164 to perform logging in RFC-3164 compatible format. Specify rfc542
|
|
|
logging in RFC-5424 compatible format. Specify rfc5424micro to perform logging in RFC-5424
|
|
|
compatible format with microsecond timestamp resolution.
|
|
|
|
|
|
+`env` should be a comma-separated list of keys of environment variables. Used for
|
|
|
+advanced [log tag options](log_tags.md).
|
|
|
+
|
|
|
+`labels` should be a comma-separated list of keys of labels. Used for advanced
|
|
|
+[log tag options](log_tags.md).
|
|
|
|
|
|
## journald options
|
|
|
|