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

Metricbeat stack modules may unmarshal large numbers into values Elasticsearch cannot understand #14220

Closed
ycombinator opened this issue Oct 24, 2019 · 1 comment · Fixed by #14222

Comments

@ycombinator
Copy link
Contributor

ycombinator commented Oct 24, 2019

All stack modules in Metricbeat use the Go encoding/json package to unmarshal the JSON responses they get from various stack products' APIs.

Unless json.(*Decoder)UseNumber() is set for the json decoder it will produce float64 values for numbers if parses. And because the large numbers are float64 values when that get written into an event they end up encoded as a float in scientific notation which fails to be parsed by Elasticsearch at indexing time.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/stack-monitoring (Stack monitoring)

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