Skip to content

json unmarshalling of large numbers #12

@rompic

Description

@rompic

endpoint provides:
"values":[265381,276756,16476547,42900243,44762036, ...

httpbeat pushes:

"values": [
265381,
276756,
1.6476547e+07,
4.2900243e+07,
4.4762036e+07,

this leads to an error when using graylog as logstash destination:
[12]: index [graylog2_17], type [message], id [e6449a00-ae49-11e6-bf3c-5e4abd8a540e], message [MapperParsingException[failed to parse]; nested: IllegalArgumentException[mapper [beat_response_jsonBody_snapshot_values] of different type, current_type [long], merged_type [double]];]

potential solution in:
http://stackoverflow.com/questions/22343083/json-marshaling-with-long-numbers-in-golang-gives-floating-point-number

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions