moby/docs/admin
Yong Tang 38c49d9987 Remove docker/ prefix from log messages tag.
This fix tries to address the issue raised in #22358 where syslog's
message tag always starts with `docker/` and can not be removed
by changing the log tag templates.

The issue is that syslog driver hardcodes `path.Base(os.Args[0])`
as the prefix, which is the binary file name of the daemon (`dockerd`).
This could be an issue for certain situations (e.g., #22358) where
user may prefer not to have a dedicated prefix in syslog messages.
There is no way to override this behavior in the current verison of
the docker.

This fix tries to address this issue without making changes in the
default behavior of the syslog driver. An additional
`{{.DaemonName}}` has been introduced in the syslog tag. This is
assigned as the `docker` when daemon starts. The default log tag
template has also been changed from
`path.Base(os.Args[0]) + "/{{.ID}}"` to `{{.DaemonName}}/{{.ID}}`.
Therefore, there is no behavior changes when log-tag is not provided.

In order to be consistent, the default log tag for fluentd has been
changed from `docker.{{.ID}}` to `{{DaemonName}}.{{.ID}}` as well.

The documentation for log-tag has been updated to reflect this change.

Additional test cases have been added to cover changes in this fix.

This fix fixes #22358.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-05-12 22:29:30 -07:00
..
b2d_volume_images Creating Engine specific menu 2016-01-26 15:58:53 -08:00
logging Remove docker/ prefix from log messages tag. 2016-05-12 22:29:30 -07:00
ambassador_pattern_linking.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
b2d_volume_resize.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
chef.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
configuring.md Update the docker daemon to dockerd for document 2016-04-29 09:06:02 +08:00
dsc.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
formatting.md Provide basic string manupilation functions for template executions. 2016-03-09 19:37:12 -05:00
host_integration.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
index.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
puppet.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
registry_mirror.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
runmetrics.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
systemd.md docs: note requirements for systemd drop-in filenames 2016-05-06 16:25:34 -04:00
using_supervisord.md docs: update supervisord example 2016-05-06 01:52:51 +02:00