Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tag as SYSLOG_IDENTIFIER for journald log driver #324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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