Skip to content
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

Unable to parse Beats payload #15571

Closed
Elastic-James opened this issue Nov 11, 2023 · 1 comment
Closed

Unable to parse Beats payload #15571

Elastic-James opened this issue Nov 11, 2023 · 1 comment
Labels

Comments

@Elastic-James
Copy link

As a result of upgrading Logstash from 8.9.0 to 8.10.4 the below error was continually observed in Logstash's logs, and which caused partial pipeline flow issues. We have had to roll back to Logstash 8.9.x

“BeatsHandler - Handling exception: java.land.RuntimeException: Unable to parse beats payload (caused by: com.fasterxml.jackson.core.exc.StreamContraintException: String length (20,050,912 exceed the maximum length (20,000,000))."

After doing some digging the implication here is the DEFAULT_MAX_STRING_LEN is no longer being set and thus picking up the default of 20MB

DEFAULT_MAX_STRING_LEN
public static final int DEFAULT_MAX_STRING_LEN
Default setting for maximum string length: see StreamReadConstraints.Builder.maxStringLength(int) for details.

See:
https://docshoster.org/p/com.fasterxml.jackson/jackson-core/latest/com/fasterxml/jackson/core/exc/StreamConstraintsException.html

https://docshoster.org/p/com.fasterxml.jackson/jackson-core/latest/com/fasterxml/jackson/core/StreamReadConstraints.html#DEFAULT_MAX_STRING_LEN

@jsvd
Copy link
Member

jsvd commented Nov 13, 2023

Users hitting this can upgrade to the newly released 8.11.1 https://www.elastic.co/guide/en/logstash/current/logstash-8-11-1.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants