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
Jonas Heinrich 5c6b913ff1
logger/gelf: Skip empty lines to comply with spec
The [gelf payload specification](http://docs.graylog.org/en/2.4/pages/gelf.html#gelf-payload-specification)
demands that the field `short_message` *MUST* be set by the client library.
Since docker logging via the gelf driver sends messages line by line, it can happen that messages with an empty
`short_message` are passed on. This causes strict downstream processors (like graylog) to raise an exception.

The logger now skips messages with an empty line.

Resolves: #40232
See also: #37572

Signed-off-by: Jonas Heinrich <Jonas@JonasHeinrich.com>
2019-11-25 11:55:15 +01:00
..
awslogs awslogs & archive: prevent 2 goroutine leaks in test functions 2019-10-29 17:03:38 -04:00
etwlogs Add canonical import comment 2018-02-05 16:51:57 -05:00
fluentd goimports: fix imports 2019-09-18 12:56:54 +02:00
gcplogs homedir: remove idtools and libcontainer's user package dependencies 2019-09-24 00:32:13 +00:00
gelf logger/gelf: Skip empty lines to comply with spec 2019-11-25 11:55:15 +01:00
journald logger/journald: U1000: field mu is unused (unused) 2019-09-18 12:57:42 +02:00
jsonfilelog jsonfilelog_test: check err from open before close 2019-09-18 12:57:30 +02:00
local goimports: fix imports 2019-09-18 12:56:54 +02:00
logentries Use a regex to match labels 2019-01-16 22:17:16 +00:00
loggerutils Use FILE_SHARE_DELETE for log files on Windows. 2019-09-23 16:45:07 -07:00
splunk Merge pull request #40081 from thaJeztah/http_constants 2019-10-17 11:30:26 -07:00
syslog Use a regex to match labels 2019-01-16 22:17:16 +00:00
templates Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
adapter.go Adds PartialLogMetadata to encode protobuf for logger plugins 2019-04-09 16:14:33 +05:00
adapter_test.go daemon.ContainerLogs(): fix resource leak on follow 2018-09-06 11:47:42 -07:00
copier.go Add metrics for log failures/partials 2018-05-10 17:22:37 -04:00
copier_test.go daemon/logger/BenchmarkCopy: don't call t.Fatal from a goroutine 2019-09-18 12:57:38 +02:00
factory.go goimports: fix imports 2019-09-18 12:56:54 +02:00
logger.go Cleanup duplication in daemon files 2018-11-13 10:42:57 +08:00
logger_test.go Improve partial message support in logger 2018-04-11 13:26:28 -07:00
loginfo.go Use a regex to match labels 2019-01-16 22:17:16 +00:00
metrics.go goimports: fix imports 2019-09-18 12:56:54 +02:00
plugin.go Entropy cannot be saved 2019-06-07 11:54:45 +01:00
plugin_unix.go Fix logging plugin crash unrecoverable 2018-05-14 16:51:56 -04:00
plugin_unsupported.go Add canonical import comment 2018-02-05 16:51:57 -05:00
proxy.go Add canonical import comment 2018-02-05 16:51:57 -05:00
ring.go Update documentation for RingLogger's ring buffer 2018-05-16 18:52:50 -06:00
ring_test.go Update documentation for RingLogger's ring buffer 2018-05-16 18:52:50 -06:00