{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/15384","labels_url":"https://api.github.com/repos/docker/docker/issues/15384/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/15384/comments","events_url":"https://api.github.com/repos/docker/docker/issues/15384/events","html_url":"https://github.com/docker/docker/pull/15384","id":99543476,"number":15384,"title":"syslog driver - Interpolate fields into syslog tag","user":{"login":"phil-monroe","id":723421,"avatar_url":"https://avatars.githubusercontent.com/u/723421?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-monroe","html_url":"https://github.com/phil-monroe","followers_url":"https://api.github.com/users/phil-monroe/followers","following_url":"https://api.github.com/users/phil-monroe/following{/other_user}","gists_url":"https://api.github.com/users/phil-monroe/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-monroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-monroe/subscriptions","organizations_url":"https://api.github.com/users/phil-monroe/orgs","repos_url":"https://api.github.com/users/phil-monroe/repos","events_url":"https://api.github.com/users/phil-monroe/events{/privacy}","received_events_url":"https://api.github.com/users/phil-monroe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/2-code-review","name":"status/2-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-06T23:11:25Z","updated_at":"2015-08-10T21:02:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/15384","html_url":"https://github.com/docker/docker/pull/15384","diff_url":"https://github.com/docker/docker/pull/15384.diff","patch_url":"https://github.com/docker/docker/pull/15384.patch"},"body":"Relates to #15058\r\n\r\nSubstitute variables about the context of the container into the syslog tag. The following go templates are added:\r\n\r\n* `{{.ID}}` - The first 12 characters of the container id.\r\n* `{{.FullID}}` - The full id of the container.\r\n* `{{.Name}}` - The name of the container.\r\n* `{{.ImageID}}` - The first 12 characters of the image id used for the container.\r\n* `{{.ImageFullID}}` - The full id of the image used for the container.\r\n* `{{.ImageName}}` - The name of the image used for the container.\r\n\r\nexample:\r\n```\r\ndocker run --log-driver=syslog --log-opt syslog-tag=\"{{.ImageName}}/{{.Name}}/{{.ID}}\" --name foobar hello-world\r\n```\r\noutput in syslog:\r\n```\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]: Hello from Docker.\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]: This message shows that your installation appears to be working correctly.\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]: To generate this message, Docker took the following steps:\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:  1. The Docker client contacted the Docker daemon.\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:  2. The Docker daemon pulled the \"hello-world\" image from the Docker Hub.\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:     (Assuming it was not already locally available.)\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:  3. The Docker daemon created a new container from that image which runs the\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:     executable that produces the output you are currently reading.\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:  4. The Docker daemon streamed that output to the Docker client, which sent it\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:     to your terminal.\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]: To try something more ambitious, you can run an Ubuntu container with:\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:  $ docker run -it ubuntu bash\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]: For more examples and ideas, visit:\r\nAug  6 22:20:04 80fbe5afa9a9 docker/hello-world/foobar/c24f89499fce[952]:  http://docs.docker.com/userguide/\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/129605510","html_url":"https://github.com/docker/docker/pull/15384#issuecomment-129605510","issue_url":"https://api.github.com/repos/docker/docker/issues/15384","id":129605510,"user":{"login":"phil-monroe","id":723421,"avatar_url":"https://avatars.githubusercontent.com/u/723421?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-monroe","html_url":"https://github.com/phil-monroe","followers_url":"https://api.github.com/users/phil-monroe/followers","following_url":"https://api.github.com/users/phil-monroe/following{/other_user}","gists_url":"https://api.github.com/users/phil-monroe/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-monroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-monroe/subscriptions","organizations_url":"https://api.github.com/users/phil-monroe/orgs","repos_url":"https://api.github.com/users/phil-monroe/repos","events_url":"https://api.github.com/users/phil-monroe/events{/privacy}","received_events_url":"https://api.github.com/users/phil-monroe/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T21:02:52Z","updated_at":"2015-08-10T21:02:52Z","body":"Just pushed an update to namespace the helper method as to not clutter `logger.go` and add some unit specs."}}