{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/packetbeat/issues/157","labels_url":"https://api.github.com/repos/elastic/packetbeat/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/elastic/packetbeat/issues/157/comments","events_url":"https://api.github.com/repos/elastic/packetbeat/issues/157/events","html_url":"https://github.com/elastic/packetbeat/issues/157","id":86100196,"number":157,"title":"ParsePgsql exception (slice bounds out of range)","user":{"login":"abulimov","id":3798402,"avatar_url":"https://avatars.githubusercontent.com/u/3798402?v=3","gravatar_id":"","url":"https://api.github.com/users/abulimov","html_url":"https://github.com/abulimov","followers_url":"https://api.github.com/users/abulimov/followers","following_url":"https://api.github.com/users/abulimov/following{/other_user}","gists_url":"https://api.github.com/users/abulimov/gists{/gist_id}","starred_url":"https://api.github.com/users/abulimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abulimov/subscriptions","organizations_url":"https://api.github.com/users/abulimov/orgs","repos_url":"https://api.github.com/users/abulimov/repos","events_url":"https://api.github.com/users/abulimov/events{/privacy}","received_events_url":"https://api.github.com/users/abulimov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/packetbeat/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"monicasarbu","id":11757159,"avatar_url":"https://avatars.githubusercontent.com/u/11757159?v=3","gravatar_id":"","url":"https://api.github.com/users/monicasarbu","html_url":"https://github.com/monicasarbu","followers_url":"https://api.github.com/users/monicasarbu/followers","following_url":"https://api.github.com/users/monicasarbu/following{/other_user}","gists_url":"https://api.github.com/users/monicasarbu/gists{/gist_id}","starred_url":"https://api.github.com/users/monicasarbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monicasarbu/subscriptions","organizations_url":"https://api.github.com/users/monicasarbu/orgs","repos_url":"https://api.github.com/users/monicasarbu/repos","events_url":"https://api.github.com/users/monicasarbu/events{/privacy}","received_events_url":"https://api.github.com/users/monicasarbu/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-08T09:25:35Z","updated_at":"2015-06-11T11:39:30Z","closed_at":null,"body":"Hi, we are trying 1.0-beta1 and getting errors with Postgres 9.3.5:\r\n```\r\nlog_unix.go:123: ERR  ParsePgsql exception. Recovering, but please report this: runtime error: slice bounds out of range.\r\nlog_unix.go:124: ERR  Stacktrace: /home/vagrant/src/github.com/elastic/packetbeat/Godeps/_workspace/src/github.com/elastic/libbeat/logp/log_unix.go:124 (0x4662f2)\r\n/usr/local/go/src/runtime/asm_amd64.s:401 (0x42fc35)\r\n/usr/local/go/src/runtime/panic.go:387 (0x41c9a8)\r\n/usr/local/go/src/runtime/panic.go:18 (0x41bb8e)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/pgsql/pgsql.go:506 (0x4ebfd3)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/pgsql/pgsql.go:671 (0x4ed1df)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/tcp/tcp.go:80 (0x4f80a1)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/tcp/tcp.go:168 (0x4f9058)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/tcp/tcp.go:328 (0x4fb11d)\r\n/home/vagrant/src/github.com/elastic/packetbeat/sniffer/sniffer.go:316 (0x509615)\r\n/home/vagrant/rpmbuild/BUILD/packetbeat/main.go:235 (0x408866)\r\n/usr/local/go/src/runtime/asm_amd64.s:2232 (0x431d71)\r\nlog_unix.go:123: ERR  ParsePgsql exception. Recovering, but please report this: runtime error: slice bounds out of range.\r\nlog_unix.go:124: ERR  Stacktrace: /home/vagrant/src/github.com/elastic/packetbeat/Godeps/_workspace/src/github.com/elastic/libbeat/logp/log_unix.go:124 (0x4662f2)\r\n/usr/local/go/src/runtime/asm_amd64.s:401 (0x42fc35)\r\n/usr/local/go/src/runtime/panic.go:387 (0x41c9a8)\r\n/usr/local/go/src/runtime/panic.go:18 (0x41bb8e)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/pgsql/pgsql.go:506 (0x4ebfd3)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/pgsql/pgsql.go:671 (0x4ed1df)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/tcp/tcp.go:80 (0x4f80a1)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/tcp/tcp.go:168 (0x4f9058)\r\n/home/vagrant/src/github.com/elastic/packetbeat/protos/tcp/tcp.go:328 (0x4fb11d)\r\n/home/vagrant/src/github.com/elastic/packetbeat/sniffer/sniffer.go:316 (0x509615)\r\n/home/vagrant/rpmbuild/BUILD/packetbeat/main.go:235 (0x408866)\r\n/usr/local/go/src/runtime/asm_amd64.s:2232 (0x431d71)\r\n```\r\n\r\nWhile error says Recovering, packetbeat stops producing any data to Elasticsearch.\r\n\r\nI've recordeded a trace as described [here](https://www.elastic.co/guide/en/beats/packetbeat/current/_recording_a_trace.html), and sent it to tudor@elastic.co."},"comment":{"url":"https://api.github.com/repos/elastic/packetbeat/issues/comments/111095035","html_url":"https://github.com/elastic/packetbeat/issues/157#issuecomment-111095035","issue_url":"https://api.github.com/repos/elastic/packetbeat/issues/157","id":111095035,"user":{"login":"monicasarbu","id":11757159,"avatar_url":"https://avatars.githubusercontent.com/u/11757159?v=3","gravatar_id":"","url":"https://api.github.com/users/monicasarbu","html_url":"https://github.com/monicasarbu","followers_url":"https://api.github.com/users/monicasarbu/followers","following_url":"https://api.github.com/users/monicasarbu/following{/other_user}","gists_url":"https://api.github.com/users/monicasarbu/gists{/gist_id}","starred_url":"https://api.github.com/users/monicasarbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monicasarbu/subscriptions","organizations_url":"https://api.github.com/users/monicasarbu/orgs","repos_url":"https://api.github.com/users/monicasarbu/repos","events_url":"https://api.github.com/users/monicasarbu/events{/privacy}","received_events_url":"https://api.github.com/users/monicasarbu/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T11:39:30Z","updated_at":"2015-06-11T11:39:30Z","body":"I fixed the particular exception that was happening when a pgsql command was invalid. But the actual reason is that the maximum number of bytes captured per packets is too small. To solve the issue, I recommend to add snaplen: 65535 under the interfaces section.\r\n\r\n<pre>\r\n  interfaces:\r\n    device: any\r\n    snaplen: 65535\r\n</pre>"}}