{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16365","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16365/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16365/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16365/events","html_url":"https://github.com/kubernetes/kubernetes/issues/16365","id":113592240,"number":16365,"title":"kubectl logs should permit number of lines to be specified","user":{"login":"jcderr","id":206918,"avatar_url":"https://avatars.githubusercontent.com/u/206918?v=3","gravatar_id":"","url":"https://api.github.com/users/jcderr","html_url":"https://github.com/jcderr","followers_url":"https://api.github.com/users/jcderr/followers","following_url":"https://api.github.com/users/jcderr/following{/other_user}","gists_url":"https://api.github.com/users/jcderr/gists{/gist_id}","starred_url":"https://api.github.com/users/jcderr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcderr/subscriptions","organizations_url":"https://api.github.com/users/jcderr/orgs","repos_url":"https://api.github.com/users/jcderr/repos","events_url":"https://api.github.com/users/jcderr/events{/privacy}","received_events_url":"https://api.github.com/users/jcderr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubectl","name":"component/kubectl","color":"0052cc"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/ux","name":"team/ux","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-27T14:13:48Z","updated_at":"2015-10-29T13:43:39Z","closed_at":null,"body":"Tools like `tail` allow one to pass `-n N` to specify that only the last N log lines should be displayed. kubectl logs should support this.\r\n\r\nMy use case is that I have a very, very long running batch process that has output 10s of millions of lines of logs, but I'm only interested in the last few hundred at any one point in time. However, when I run `kubectl logs ...`, my terminal must spew the full logfile before getting to the end."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/152182917","html_url":"https://github.com/kubernetes/kubernetes/issues/16365#issuecomment-152182917","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16365","id":152182917,"user":{"login":"jcderr","id":206918,"avatar_url":"https://avatars.githubusercontent.com/u/206918?v=3","gravatar_id":"","url":"https://api.github.com/users/jcderr","html_url":"https://github.com/jcderr","followers_url":"https://api.github.com/users/jcderr/followers","following_url":"https://api.github.com/users/jcderr/following{/other_user}","gists_url":"https://api.github.com/users/jcderr/gists{/gist_id}","starred_url":"https://api.github.com/users/jcderr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcderr/subscriptions","organizations_url":"https://api.github.com/users/jcderr/orgs","repos_url":"https://api.github.com/users/jcderr/repos","events_url":"https://api.github.com/users/jcderr/events{/privacy}","received_events_url":"https://api.github.com/users/jcderr/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T13:43:39Z","updated_at":"2015-10-29T13:43:39Z","body":"    $  kubectl version\r\n    Client Version: version.Info{Major:\"1\", Minor:\"0\", GitVersion:\"v1.0.6\", GitCommit:\"388061f00f0d9e4d641f9ed4971c775e1654579d\", GitTreeState:\"clean\"}\r\n    Server Version: version.Info{Major:\"1\", Minor:\"0\", GitVersion:\"v1.0.6\", GitCommit:\"388061f00f0d9e4d641f9ed4971c775e1654579d\", GitTreeState:\"clean\"}\r\n"}}