-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ParsePgsql exception (slice bounds out of range) #157
Comments
As the length from the postgresql command (type + length + message) includes the size of itself, meaning sizeof(int32) + length(message), make sure the length is greater than sizeof(int32).
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. interfaces: device: any snaplen: 65535 |
Thanks for the fix. The documentation for snaplen now says that "You generally want to set this to the MTU size used in your network." Maybe you could add some information about reasons to set such big values as 65536? Thanks in advance! |
Yes, it seems that trying to correlate the snaplen with the MTU was a mistake. See more in #155. We'll update the docs as part of that ticket. |
As the length from the postgresql command (type + length + message) includes the size of itself, meaning sizeof(int32) + length(message), make sure the length is greater than sizeof(int32).
Hi, we are trying 1.0-beta1 and getting errors with Postgres 9.3.5:
While error says Recovering, packetbeat stops producing any data to Elasticsearch.
I've recordeded a trace as described here, and sent it to tudor@elastic.co.
The text was updated successfully, but these errors were encountered: