Skip to content

Conversation

rjhowe
Copy link

@rjhowe rjhowe commented Sep 18, 2018

- What I did
Added SYSLOG_IDENTIFIER when using docker journald log driver. When sending logs from journal to rsyslog programname will be set to the SYSLOG_IDENTIFIER and not defaulted to getting set to journal.

- How I did it
moby@ae557f9
https://docs.docker.com/config/containers/logging/journald/

- How to verify it
Run:

# docker run --name logging-test --entrypoint=/bin/echo registry.access.redhat.com/rhel7 "Hello Logs"
# journalctl CONTAINER_NAME=logging-test -o verbose

Then look for SYSLOG_IDENTIFIER being set to the same value as CONTAINER_TAG

- Description for the changelog
Added tag as SYSLOG_IDENTIFIER for journald log driver

@rjhowe
Copy link
Author

rjhowe commented Sep 18, 2018

Issue discussed in the following bug: https://bugzilla.redhat.com/show_bug.cgi?id=1527918

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant