# Failed to parse field \[datasize\] of type \[integer\] in document with id

**URL:** <https://discuss.elastic.co/t/failed-to-parse-field-datasize-of-type-integer-in-document-with-id/250650>\
**Category:** Logstash\
**Created:** [October 1, 2020, 10:56am UTC](https://discuss.elastic.co/t/failed-to-parse-field-datasize-of-type-integer-in-document-with-id/250650 "2020-10-01T10:56:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martb/32/78185_2.png) [@martb](https://discuss.elastic.co/u/martb)\
**Post date:** [October 1, 2020, 10:56am UTC](https://discuss.elastic.co/t/failed-to-parse-field-datasize-of-type-integer-in-document-with-id/250650/1 "2020-10-01T10:56:16Z")

</div>

Hi,

I'm getting the following error from logstash. The field is mapped as an integer and the number is only 11 digits long. Is this mapped as the correct type? Please advise.

[2020-10-01T10:10:18,893][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["update", {:\_id=\>"6ec32a178dfdc10bda5eb2c3d32ebe3805c3670fce1ed99b7e4cc7bc08829e50", :\_index=\>"alm-logtype", :\_type=\>"\_doc", :routing=\>nil, :retry\_on\_conflict=\>1}, #LogStash::Event:0x57c61a2c], :response=\>{"update"=\>{"\_index"=\>"alm-logtype", "\_type"=\>"\_doc", "\_id"=\>"6ec32a178dfdc10bda5eb2c3d32ebe3805c3670fce1ed99b7e4cc7bc08829e50", "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse field [datasize] of type [integer] in document with id '6ec32a178dfdc10bda5eb2c3d32ebe3805c3670fce1ed99b7e4cc7bc08829e50'. Preview of field's value: '15672161421'", "caused\_by"=\>{"type"=\>"json\_parse\_exception", "reason"=\>"Numeric value (15672161421) out of range of int\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@54e3762f; line: 1, column: 54]"}}}}}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 29, 2020, 10:56am UTC](https://discuss.elastic.co/t/failed-to-parse-field-datasize-of-type-integer-in-document-with-id/250650/2 "2020-10-29T10:56:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
