{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/13707","labels_url":"https://api.github.com/repos/docker/docker/issues/13707/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/13707/comments","events_url":"https://api.github.com/repos/docker/docker/issues/13707/events","html_url":"https://github.com/docker/docker/pull/13707","id":84697934,"number":13707,"title":"Implement the \"logs\" endpoint for the journald log driver","user":{"login":"nalind","id":1200159,"avatar_url":"https://avatars.githubusercontent.com/u/1200159?v=3","gravatar_id":"","url":"https://api.github.com/users/nalind","html_url":"https://github.com/nalind","followers_url":"https://api.github.com/users/nalind/followers","following_url":"https://api.github.com/users/nalind/following{/other_user}","gists_url":"https://api.github.com/users/nalind/gists{/gist_id}","starred_url":"https://api.github.com/users/nalind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nalind/subscriptions","organizations_url":"https://api.github.com/users/nalind/orgs","repos_url":"https://api.github.com/users/nalind/repos","events_url":"https://api.github.com/users/nalind/events{/privacy}","received_events_url":"https://api.github.com/users/nalind/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/1-needs-design-review","name":"status/1-needs-design-review","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-03T18:12:23Z","updated_at":"2015-06-08T22:12:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/13707","html_url":"https://github.com/docker/docker/pull/13707","diff_url":"https://github.com/docker/docker/pull/13707.diff","patch_url":"https://github.com/docker/docker/pull/13707.patch"},"body":"This change set uses the journald libraries to read log entries from the journal, and hooks that up to the \"logs\" endpoint.  It moves handling of the --last option out of the endpoint logic and into the log drivers themselves, because doing so has the potential cut down on how much data the journald driver will have to dump to its pipe.\r\n\r\nIt's multiple patches to hopefully be easier to review, but I have no qualms about squashing things together if that's preferred."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/110159566","html_url":"https://github.com/docker/docker/pull/13707#issuecomment-110159566","issue_url":"https://api.github.com/repos/docker/docker/issues/13707","id":110159566,"user":{"login":"nalind","id":1200159,"avatar_url":"https://avatars.githubusercontent.com/u/1200159?v=3","gravatar_id":"","url":"https://api.github.com/users/nalind","html_url":"https://github.com/nalind","followers_url":"https://api.github.com/users/nalind/followers","following_url":"https://api.github.com/users/nalind/following{/other_user}","gists_url":"https://api.github.com/users/nalind/gists{/gist_id}","starred_url":"https://api.github.com/users/nalind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nalind/subscriptions","organizations_url":"https://api.github.com/users/nalind/orgs","repos_url":"https://api.github.com/users/nalind/repos","events_url":"https://api.github.com/users/nalind/events{/privacy}","received_events_url":"https://api.github.com/users/nalind/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T22:12:55Z","updated_at":"2015-06-08T22:12:55Z","body":"Ah, thanks!  It's still not giving me the ``Unrecognized input header`` error, though it does show me the first few lines of the output twice if I run ``docker logs -f`` quickly enough.\r\n\r\nIt looks as though, if the client and daemon disagreed about whether or not the container had a tty allocated to it, that the data stream coming back from the server wouldn't be muxed using an stdcopy.StdWriter, so it wouldn't be in the format that stdcopy.StdCopy expects to demux, and that should cause the ``Unrecognized input header`` message to appear, but I'm at a loss as to how to actually trigger it."}}