Merge pull request #38032 from RohitK89/21497-log-image-name
Add IMAGE_NAME attribute to journald log events
This commit is contained in:
commit
533e07afbe
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ func New(info logger.Info) (logger.Logger, error) {
|
|||
"CONTAINER_ID_FULL": info.ContainerID,
|
||||
"CONTAINER_NAME": info.Name(),
|
||||
"CONTAINER_TAG": tag,
|
||||
"IMAGE_NAME": info.ImageName(),
|
||||
"SYSLOG_IDENTIFIER": tag,
|
||||
}
|
||||
extraAttrs, err := info.ExtraAttributes(sanitizeKeyMod)
|
||||
|
|
Loading…
Add table
Reference in a new issue