# ES Choking on Seemingly Valid JSON

**URL:** <https://discuss.elastic.co/t/es-choking-on-seemingly-valid-json/22953>\
**Category:** Elasticsearch\
**Created:** [March 27, 2015, 9:10pm UTC](https://discuss.elastic.co/t/es-choking-on-seemingly-valid-json/22953 "2015-03-27T21:10:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Kleiner](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@David\_Kleiner](https://discuss.elastic.co/u/David_Kleiner)\
**Post date:** [March 27, 2015, 9:10pm UTC](https://discuss.elastic.co/t/es-choking-on-seemingly-valid-json/22953/1 "2015-03-27T21:10:47Z")

</div>

Error, with some parameters modified to protect the innocent.

the JSON here does pass the lint validator, is it the empty params : {}  
that throws it off?

[2015-03-27 16:00:21,010][DEBUG][action.bulk] [host / Luis  
Buñuel] [eventlog-2015.03][4] failed to execute bulk item (index) index  
{[eventlog-2015.03][eventlog][AUxdCR6Q-VLJ8JocD46y],  
source[{"@version":"1","@timestamp":"2015-03-27T16:00:20.717-05:00","type":"eventlog","file":"/opt/acc/logs/NNN/MMMMM/OOOOO.log","host":"ZZZZZ","offset":"177473796","cluster":"CB\_PROD\_ROS","json":{"logEventId":"201503272100163859067253.ZZZZZ.28140","msg":{"time":"2015-03-27T21:00:16Z","appVersion":"FFFFF","eventType":"AAAAAAAAA","responseTime":0,"pulseId":"26a92524-6c5f-417e-a746-86e78278b51f","info":{"item":{"id":"26a92524-6c5f-417e-a746-86e78278b51f","accountId":XXXX,"lastRunOutcome":"success","valueTime":1427489940000,"lastRunDuration":7962,"currentRequestCount":0,"lastRunStartTime":1427490008422,"nextValueDueTime":1427490076384,"cacheTime":60000,"lastRequestCount":6,"running":true}}},"event":{"params":{}}}}]}  
org.elasticsearch.index.mapper.MapperParsingException: object mapping for  
[eventlog] tried to parse field [json] as object, but got EOF, has a  
concrete value been provided to it?  
at  
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:495)  
at  
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:544)  
at  
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:493)  
at  
org.elasticsearch.index.shard.IndexShard.prepareCreate(IndexShard.java:438)  
at  
org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:432)  
at  
org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:149)  
at  
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:515)  
at  
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:422)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:745)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 27, 2015, 10:42pm UTC](https://discuss.elastic.co/t/es-choking-on-seemingly-valid-json/22953/2 "2015-03-27T22:42:15Z")

</div>

You have mixed plain strings and json objects for field "json" in your data.

This is not allowed.

Jörg

On Fri, Mar 27, 2015 at 10:10 PM, David Kleiner [david.kleiner@gmail.com](mailto:david.kleiner@gmail.com)  
wrote:

> Error, with some parameters modified to protect the innocent.
> 
> the JSON here does pass the lint validator, is it the empty params : {}  
> that throws it off?
> 
> [2015-03-27 16:00:21,010][DEBUG][action.bulk] [host / Luis  
> Buñuel] [eventlog-2015.03][4] failed to execute bulk item (index) index  
> {[eventlog-2015.03][eventlog][AUxdCR6Q-VLJ8JocD46y],  
> source[{"@version":"1","@timestamp":"2015-03-27T16:00:20.717-05:00","type":"eventlog","file":"/opt/acc/logs/NNN/MMMMM/OOOOO.log","host":"ZZZZZ","offset":"177473796","cluster":"CB\_PROD\_ROS","json":{"logEventId":"201503272100163859067253.ZZZZZ.28140","msg":{"time":"2015-03-27T21:00:16Z","appVersion":"FFFFF","eventType":"AAAAAAAAA","responseTime":0,"pulseId":"26a92524-6c5f-417e-a746-86e78278b51f","info":{"item":{"id":"26a92524-6c5f-417e-a746-86e78278b51f","accountId":XXXX,"lastRunOutcome":"success","valueTime":1427489940000,"lastRunDuration":7962,"currentRequestCount":0,"lastRunStartTime":1427490008422,"nextValueDueTime":1427490076384,"cacheTime":60000,"lastRequestCount":6,"running":true}}},"event":{"params":{}}}}]}  
> org.elasticsearch.index.mapper.MapperParsingException: object mapping for  
> [eventlog] tried to parse field [json] as object, but got EOF, has a  
> concrete value been provided to it?  
> at  
> org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:495)  
> at  
> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:544)  
> at  
> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:493)  
> at  
> org.elasticsearch.index.shard.IndexShard.prepareCreate(IndexShard.java:438)  
> at  
> org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:432)  
> at  
> org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:149)  
> at  
> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:515)  
> at  
> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:422)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:745)
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoF99PGh3KhfmPHrN58%2BeaSD8NgALz8TsDGiV0jXc7WD4g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoF99PGh3KhfmPHrN58%2BeaSD8NgALz8TsDGiV0jXc7WD4g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![David\_Kleiner](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@David\_Kleiner](https://discuss.elastic.co/u/David_Kleiner)\
**Post date:** [March 27, 2015, 11:25pm UTC](https://discuss.elastic.co/t/es-choking-on-seemingly-valid-json/22953/3 "2015-03-27T23:25:20Z")

</div>

Got it, thank you Joerg!

On Friday, March 27, 2015 at 3:42:36 PM UTC-7, Jörg Prante wrote:

> You have mixed plain strings and json objects for field "json" in your  
> data.
> 
> This is not allowed.
> 
> Jörg
> 
> On Fri, Mar 27, 2015 at 10:10 PM, David Kleiner \<[david....@gmail.com](mailto:david....@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Error, with some parameters modified to protect the innocent.
> > 
> > the JSON here does pass the lint validator, is it the empty params : {}  
> > that throws it off?
> > 
> > [2015-03-27 16:00:21,010][DEBUG][action.bulk] [host / Luis  
> > Buñuel] [eventlog-2015.03][4] failed to execute bulk item (index) index  
> > {[eventlog-2015.03][eventlog][AUxdCR6Q-VLJ8JocD46y],  
> > source[{"@version":"1","@timestamp":"2015-03-27T16:00:20.717-05:00","type":"eventlog","file":"/opt/acc/logs/NNN/MMMMM/OOOOO.log","host":"ZZZZZ","offset":"177473796","cluster":"CB\_PROD\_ROS","json":{"logEventId":"201503272100163859067253.ZZZZZ.28140","msg":{"time":"2015-03-27T21:00:16Z","appVersion":"FFFFF","eventType":"AAAAAAAAA","responseTime":0,"pulseId":"26a92524-6c5f-417e-a746-86e78278b51f","info":{"item":{"id":"26a92524-6c5f-417e-a746-86e78278b51f","accountId":XXXX,"lastRunOutcome":"success","valueTime":1427489940000,"lastRunDuration":7962,"currentRequestCount":0,"lastRunStartTime":1427490008422,"nextValueDueTime":1427490076384,"cacheTime":60000,"lastRequestCount":6,"running":true}}},"event":{"params":{}}}}]}  
> > org.elasticsearch.index.mapper.MapperParsingException: object mapping for  
> > [eventlog] tried to parse field [json] as object, but got EOF, has a  
> > concrete value been provided to it?  
> > at  
> > org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:495)  
> > at  
> > org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:544)  
> > at  
> > org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:493)  
> > at  
> > org.elasticsearch.index.shard.IndexShard.prepareCreate(IndexShard.java:438)  
> > at  
> > org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:432)  
> > at  
> > org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:149)  
> > at  
> > org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:515)  
> > at  
> > org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:422)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> > at java.lang.Thread.run(Thread.java:745)
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/926f9703-c385-4113-a6ec-9bd2f42e065e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/99161954-4cc2-4956-a286-870f04841826%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/99161954-4cc2-4956-a286-870f04841826%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:23am UTC](https://discuss.elastic.co/t/es-choking-on-seemingly-valid-json/22953/4 "2017-07-06T00:23:22Z")

</div>


