# Logstash json\_parse\_exception

**URL:** <https://discuss.elastic.co/t/logstash-json-parse-exception/74338>\
**Category:** Logstash\
**Created:** [February 8, 2017, 8:23am UTC](https://discuss.elastic.co/t/logstash-json-parse-exception/74338 "2017-02-08T08:23:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swumao](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@swumao](https://discuss.elastic.co/u/swumao)\
**Post date:** [February 8, 2017, 8:23am UTC](https://discuss.elastic.co/t/logstash-json-parse-exception/74338/1 "2017-02-08T08:23:00Z")

</div>

```auto
"error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [offset]", "caused_by"=>{"type"=>"json_parse_exception", "reason"=>"Numeric value (2599608067) out of range of int\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@130bd21; line: 1, column: 21]"}}

```

there are so many warn log in `/var/log/logstash/logstash-plain.log` file.

and I have tried to find the number 2599608067(or others in the log..) in my source file, but cann't find it.

please help me and tell me where is wrong !

thanks

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 8, 2017, 8:53am UTC](https://discuss.elastic.co/t/logstash-json-parse-exception/74338/2 "2017-02-08T08:53:18Z")

</div>

Elasticsearch is complaining about 2599608067 being too big for the integer datatype of the `offset` field. Make sure that field has the long type. You may need to adjust your index template for this.

The offset value is most likely the position in the log file that was read. If you don't need that perhaps you should just delete that field?

---

<div class="post-metadata">

**Author:** ![swumao](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@swumao](https://discuss.elastic.co/u/swumao)\
**Post date:** [February 8, 2017, 9:44am UTC](https://discuss.elastic.co/t/logstash-json-parse-exception/74338/3 "2017-02-08T09:44:21Z")

</div>

thank you very much

---

<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:** [March 8, 2017, 9:44am UTC](https://discuss.elastic.co/t/logstash-json-parse-exception/74338/4 "2017-03-08T09:44:32Z")

</div>

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