-
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
Couchbase module throws json parse exception on basicStats.opsPerSec #18949
Comments
I also worked with couchbase to get their position on what their
|
Pinging @elastic/integrations-services (Team:Services) |
The referenced commit makes this look like it's fixed in 7.8, but I've just tried with that version and we get the same issues.
|
I can confirm, we fix a different field but we left this one. It's not ideal to parse everything as |
Not sure if this is related, but using logstash with filebeat/metricbeat consistently results in "0" being interpreted as an int. I've even seen "0.0" get converted to "0" int, until a new index rolls around and the value is a non-zero non-integer. This is for schemaless data with no templates in ES. The root cause is most certainly JSON not distinguishing float from int in Numeric. |
Fixed in #19055 |
Please refer to below post:
https://discuss.elastic.co/t/couchbase-module-throws-json-parse-exception-on-basicstats-opspersec/235455
Issue: Metricbeat Couchbase module throws the below error
Error: %!(EXTRA *json.UnmarshalTypeError=json: cannot unmarshal number 790.2097902097902 into Go struct field BucketBasicStats.opsPerSec of type int64)
Issue is in the data.go file. The code makes an assumption that couchbase API
pools/default/buckets
returns an int where as it actually returns a float. I have checked this with version 5.x and 6.x of couchbase.I see this issue with metricbeat version 6.8.3 (amd64), libbeat 6.8.3 running on RHEL 7.7
Error Details:
The text was updated successfully, but these errors were encountered: