{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/15975","labels_url":"https://api.github.com/repos/docker/docker/issues/15975/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/15975/comments","events_url":"https://api.github.com/repos/docker/docker/issues/15975/events","html_url":"https://github.com/docker/docker/pull/15975","id":104255290,"number":15975,"title":"Add extra fields based on label and env for gelf/fluentd log drivers","user":{"login":"dqminh","id":62707,"avatar_url":"https://avatars.githubusercontent.com/u/62707?v=3","gravatar_id":"","url":"https://api.github.com/users/dqminh","html_url":"https://github.com/dqminh","followers_url":"https://api.github.com/users/dqminh/followers","following_url":"https://api.github.com/users/dqminh/following{/other_user}","gists_url":"https://api.github.com/users/dqminh/gists{/gist_id}","starred_url":"https://api.github.com/users/dqminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dqminh/subscriptions","organizations_url":"https://api.github.com/users/dqminh/orgs","repos_url":"https://api.github.com/users/dqminh/repos","events_url":"https://api.github.com/users/dqminh/events{/privacy}","received_events_url":"https://api.github.com/users/dqminh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/1-design-review","name":"status/1-design-review","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-01T12:31:35Z","updated_at":"2015-09-03T15:37:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/15975","html_url":"https://github.com/docker/docker/pull/15975","diff_url":"https://github.com/docker/docker/pull/15975.diff","patch_url":"https://github.com/docker/docker/pull/15975.patch"},"body":"Fix #15816\r\n\r\nThis adds container env and labels to log context, and use the data in gelf and fluentd log driver to expose more logging data.\r\n\r\nUsage:\r\n- gelf: `--log-opt gelf-labels=label1,label2 --log-opt gelf-env=env1,env2`\r\n- fluentd: `--log-opt fluentd-labels=label1,label2 --log-opt fluentd-env=env1,env2`\r\n\r\nThe above instructions add `label1`, `label2`, `env1`, `env2` key-value pair to log.\r\n\r\ncc @LK4D4 @tagomoris @mariussturm "},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/137487924","html_url":"https://github.com/docker/docker/pull/15975#issuecomment-137487924","issue_url":"https://api.github.com/repos/docker/docker/issues/15975","id":137487924,"user":{"login":"dqminh","id":62707,"avatar_url":"https://avatars.githubusercontent.com/u/62707?v=3","gravatar_id":"","url":"https://api.github.com/users/dqminh","html_url":"https://github.com/dqminh","followers_url":"https://api.github.com/users/dqminh/followers","following_url":"https://api.github.com/users/dqminh/following{/other_user}","gists_url":"https://api.github.com/users/dqminh/gists{/gist_id}","starred_url":"https://api.github.com/users/dqminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dqminh/subscriptions","organizations_url":"https://api.github.com/users/dqminh/orgs","repos_url":"https://api.github.com/users/dqminh/repos","events_url":"https://api.github.com/users/dqminh/events{/privacy}","received_events_url":"https://api.github.com/users/dqminh/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T15:37:05Z","updated_at":"2015-09-03T15:37:05Z","body":"@mariussturm added support for `_` prefix in additional field names."}}