{"action":"created","issue":{"url":"https://api.github.com/repos/olivere/elastic/issues/177","labels_url":"https://api.github.com/repos/olivere/elastic/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/olivere/elastic/issues/177/comments","events_url":"https://api.github.com/repos/olivere/elastic/issues/177/events","html_url":"https://github.com/olivere/elastic/pull/177","id":119519839,"number":177,"title":"Fix tracelog issue with large requests/responses","user":{"login":"gdm85","id":7117866,"avatar_url":"https://avatars.githubusercontent.com/u/7117866?v=3","gravatar_id":"","url":"https://api.github.com/users/gdm85","html_url":"https://github.com/gdm85","followers_url":"https://api.github.com/users/gdm85/followers","following_url":"https://api.github.com/users/gdm85/following{/other_user}","gists_url":"https://api.github.com/users/gdm85/gists{/gist_id}","starred_url":"https://api.github.com/users/gdm85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdm85/subscriptions","organizations_url":"https://api.github.com/users/gdm85/orgs","repos_url":"https://api.github.com/users/gdm85/repos","events_url":"https://api.github.com/users/gdm85/events{/privacy}","received_events_url":"https://api.github.com/users/gdm85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T15:51:24Z","updated_at":"2015-12-07T18:29:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/olivere/elastic/pulls/177","html_url":"https://github.com/olivere/elastic/pull/177","diff_url":"https://github.com/olivere/elastic/pull/177.diff","patch_url":"https://github.com/olivere/elastic/pull/177.patch"},"body":"There is a limitation in bufio that prevents current trace dumps to work:\r\n```\r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg=\"ES trace 2015/11/30 14:50:01 GET /_all/_settings HTTP/1.1\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg=\"Host: x.x.x.x:9200\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg=\"User-Agent: elastic/2.0.20 (linux-amd64)\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg=\"Accept: application/json\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg=\"Accept-Encoding: gzip\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg= \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg= \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg=\"ES trace 2015/11/30 14:50:01 HTTP/1.1 20\r\n0 OK\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg=\"Content-Length: 191369\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg=\"Content-Type: application/json; charset=UTF-8\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg= \r\ntime=\"2015-11-30T14:50:01+01:00\" level=error msg=\"Error while reading from Writer: bufio.Scanner: token too long\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=info msg=\"ES info 2015/11/30 14:50:01 GET http://x.x.x.x:9200/_all/_settings [status:200, request:0.065s]\" \r\ntime=\"2015-11-30T14:50:01+01:00\" level=fatal msg=\"elastic: Error 400 (Bad Request)\" component=\"cmd/es-index-deploy\" hostname=xxx\r\n```\r\n\r\nYou can find the constant precisely at line 71 here: https://golang.org/src/bufio/scan.go (being 64K)\r\n\r\nWhen the user is troubleshooting issue #170 he/she can't get any help from log traces because of this problem. By using the trace method I introduce here, will instead be able to see the large request and provide/use it as a testcase."},"comment":{"url":"https://api.github.com/repos/olivere/elastic/issues/comments/162615823","html_url":"https://github.com/olivere/elastic/pull/177#issuecomment-162615823","issue_url":"https://api.github.com/repos/olivere/elastic/issues/177","id":162615823,"user":{"login":"olivere","id":134848,"avatar_url":"https://avatars.githubusercontent.com/u/134848?v=3","gravatar_id":"","url":"https://api.github.com/users/olivere","html_url":"https://github.com/olivere","followers_url":"https://api.github.com/users/olivere/followers","following_url":"https://api.github.com/users/olivere/following{/other_user}","gists_url":"https://api.github.com/users/olivere/gists{/gist_id}","starred_url":"https://api.github.com/users/olivere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivere/subscriptions","organizations_url":"https://api.github.com/users/olivere/orgs","repos_url":"https://api.github.com/users/olivere/repos","events_url":"https://api.github.com/users/olivere/events{/privacy}","received_events_url":"https://api.github.com/users/olivere/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T18:29:42Z","updated_at":"2015-12-07T18:29:42Z","body":"@gdm85 TBH I'm not sure I want to enable this by default. Don't misunderstand me: I know what you're after, and I see how it can be valuable. However, it can also result in GB of log file data without even noticing. Maybe by introducing a verbosity level? I personally think elastic is already too verbose by default."}}