1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/logger
Solganik Alexander 1a40dd535f Fixes #18712. Add rfc5424 log format for syslog.
Previously docker used obsolete rfc3164 syslog format for syslog. rfc3164 explicitly
uses semicolon as a separator between 'TAG' and 'Content' section of the log message.
Docker uses semicolon as a separator between image name and version tag.
When {{.ImageName}} was used as a tag expression and contained ":" syslog parser mistreated
"tag" part of the image name as syslog message body, which resulted in incorrect "syslogtag" been reported by syslog
daemon.
Use of rfc5424 log format partually fixes the issue as it does not use semicolon as a separator.
However using default rfc5424 syslog format itroduces backward incompatability because rsyslog template keyword  %syslogtag%
is parsed differently. In rfc3164 it uses the "TAG" part reported before the "pid" part. In rfc5424 it uses "appname" part reported
before the pid part, while tag part is introduced by %msgid% part.
For more information on rsyslog configuration properties see: http://www.rsyslog.com/doc/master/configuration/properties.html

Added two options to specify logging in either rfc5424, rfc3164 format or unix format omitting hostname in order to keep backwards compatability with
previous versions.

Signed-off-by: Solganik Alexander <solganik@gmail.com>
2016-03-09 22:31:11 +02:00
..
awslogs dockerversion placeholder for library import 2015-11-09 19:32:46 +01:00
etwlogs Windows: Add ETW logging driver plug-in 2016-02-16 13:24:49 -08:00
fluentd Added flag to ignore fluentd connect error on container start 2016-01-27 09:05:44 +02:00
gcplogs daemon/logger: Add logging driver for Google Cloud Logging 2016-03-01 08:06:10 -08:00
gelf dont trim gelf log message 2015-12-11 10:28:24 +01:00
journald Try to handle changing names for journal packages 2016-02-23 12:24:27 -05:00
jsonfilelog Remove some unused structs and fields 2016-03-01 09:59:29 -08:00
loggerutils make the json log writer much faster 2016-02-23 19:28:06 +08:00
splunk Fix typos found across repository 2015-12-13 18:04:12 +02:00
syslog Fixes #18712. Add rfc5424 log format for syslog. 2016-03-09 22:31:11 +02:00
context.go daemon/logger: fix typo in godoc 2015-12-17 15:52:33 -08:00
copier.go only close LogDriver after LogCopier is done 2016-01-18 17:47:57 +00:00
copier_test.go only close LogDriver after LogCopier is done 2016-01-18 17:47:57 +00:00
factory.go log driver - add ability to interpolate container context into the log tag field 2015-09-16 15:19:28 -07:00
logger.go Move timeutils functions to the only places where they are used. 2015-12-15 14:56:14 -05:00