From 517d1e5e8fdb37d8d5f10f3a304cb144abdb5d56 Mon Sep 17 00:00:00 2001 From: Ryan Howe Date: Tue, 18 Sep 2018 11:40:39 -0400 Subject: [PATCH] Add tag as SYSLOG_IDENTIFIER for journald log driver --- daemon/logger/journald/journald.go | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/logger/journald/journald.go b/daemon/logger/journald/journald.go index 748dd8b24a181..58de3a4812b35 100644 --- a/daemon/logger/journald/journald.go +++ b/daemon/logger/journald/journald.go @@ -60,6 +60,7 @@ func New(ctx logger.Context) (logger.Logger, error) { "CONTAINER_ID_FULL": ctx.ContainerID, "CONTAINER_NAME": name, "CONTAINER_TAG": tag, + "SYSLOG_IDENTIFIER": tag, } extraAttrs := ctx.ExtraAttributes(strings.ToTitle) for k, v := range extraAttrs {