{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7123","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7123/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7123/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7123/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7123","id":69928165,"number":7123,"title":"Propagate pod and container name for log files","user":{"login":"satnam6502","id":6164339,"avatar_url":"https://avatars.githubusercontent.com/u/6164339?v=3","gravatar_id":"","url":"https://api.github.com/users/satnam6502","html_url":"https://github.com/satnam6502","followers_url":"https://api.github.com/users/satnam6502/followers","following_url":"https://api.github.com/users/satnam6502/following{/other_user}","gists_url":"https://api.github.com/users/satnam6502/gists{/gist_id}","starred_url":"https://api.github.com/users/satnam6502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satnam6502/subscriptions","organizations_url":"https://api.github.com/users/satnam6502/orgs","repos_url":"https://api.github.com/users/satnam6502/repos","events_url":"https://api.github.com/users/satnam6502/events{/privacy}","received_events_url":"https://api.github.com/users/satnam6502/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"ECF7EC"}],"state":"open","locked":false,"assignee":{"login":"dchen1107","id":7740897,"avatar_url":"https://avatars.githubusercontent.com/u/7740897?v=3","gravatar_id":"","url":"https://api.github.com/users/dchen1107","html_url":"https://github.com/dchen1107","followers_url":"https://api.github.com/users/dchen1107/followers","following_url":"https://api.github.com/users/dchen1107/following{/other_user}","gists_url":"https://api.github.com/users/dchen1107/gists{/gist_id}","starred_url":"https://api.github.com/users/dchen1107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchen1107/subscriptions","organizations_url":"https://api.github.com/users/dchen1107/orgs","repos_url":"https://api.github.com/users/dchen1107/repos","events_url":"https://api.github.com/users/dchen1107/events{/privacy}","received_events_url":"https://api.github.com/users/dchen1107/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-04-21T19:15:04Z","updated_at":"2015-04-22T02:20:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/7123","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7123","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7123.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7123.patch"},"body":"This is a stepping stop towards propagating more useful information when ingesting cluster level logs (from Docker containers). This change modifies both of the Elasticsearch and Cloud Logging collector containers to collect from filenames that have encoded in them the `<podname><container name><Docker container ID>` which can then be used to slice and dice for queries in Elasticsearch (and at some point hopefully used for labels in Cloud Logging). For example `/var/log/containers/mypod_default-mycontainer-22be5c3295a7d2551fed0ce923a9caf61ee43d94f620ae6ca6d1a4daab5c8082.log` would link to `/var/lib/docker/containers/22be5c3295a7d2551fed0ce923a9caf61ee43d94f620ae6ca6d1a4daab5c8082/22be5c3295a7d2551fed0ce923a9caf61ee43d94f620ae6ca6d1a4daab5c8082-josn.log`\r\n@a-robinson @vishh @mr-salty\r\n\r\nThis PR changes the Kubelet to add a symbolic link to the Docker container log file. @dchen1107 \r\nThis change causes an error log message to be written out during the integration test run reporting that a symbolic link could not be created -- but his is probably desirable since we don't want symbolic links being created on the machine that runs the integration tests.\r\n\r\nFor the moment I am leaving in the mapping to the `/var/lib/docker/containers/...` directory and I shall remove this at a later stage when I am sure this change is working well."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/94999977","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/7123#issuecomment-94999977","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/7123","id":94999977,"user":{"login":"vishh","id":7063592,"avatar_url":"https://avatars.githubusercontent.com/u/7063592?v=3","gravatar_id":"","url":"https://api.github.com/users/vishh","html_url":"https://github.com/vishh","followers_url":"https://api.github.com/users/vishh/followers","following_url":"https://api.github.com/users/vishh/following{/other_user}","gists_url":"https://api.github.com/users/vishh/gists{/gist_id}","starred_url":"https://api.github.com/users/vishh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishh/subscriptions","organizations_url":"https://api.github.com/users/vishh/orgs","repos_url":"https://api.github.com/users/vishh/repos","events_url":"https://api.github.com/users/vishh/events{/privacy}","received_events_url":"https://api.github.com/users/vishh/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T02:20:54Z","updated_at":"2015-04-22T02:20:54Z","body":"So `docker info` should help here, but not completely.\r\n```shell\r\nkubernetes-minion-nzdh:~$ sudo docker info\r\nContainers: 51\r\nImages: 504\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 606\r\nExecution Driver: native-0.2\r\nKernel Version: 3.16.0-0.bpo.4-amd64\r\nOperating System: Debian GNU/Linux 7 (wheezy)\r\nCPUs: 2\r\nTotal Memory: 7.324 GiB\r\nName: kubernetes-minion-nzdh\r\nID: 3POU:TAGO:UECD:NI3F:77QF:62X3:JXAD:L5JL:IF2A:Y6EL:T7UI:TMEZ\r\nWARNING: No swap limit support\r\n```"}}