# Elasticsearch parser problem

**URL:** <https://discuss.elastic.co/t/elasticsearch-parser-problem/238109>\
**Category:** Elasticsearch\
**Created:** [June 22, 2020, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-parser-problem/238109 "2020-06-22T15:02:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaclav1](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaclav1](https://discuss.elastic.co/u/vaclav1)\
**Post date:** [June 22, 2020, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-parser-problem/238109/1 "2020-06-22T15:02:29Z")

</div>

Hello,

we are having difficulties while parsing incoming object from http poller plugin and storing into ELS.

Template mapping is here:

```auto
"aqarchive": {
                      "properties": {
                        "health": {
                          "type": "keyword"
                        },
                        "healthtext": {
                          "type": "keyword"
                        },
                        "queuesStatus": {
                          "dynamic": true
                        }
                      }
                    }

```

Dynamic template:

```auto
{
          "queue_statuses_template": {
            "path_match": "queueStatus.queueByTypes.*.queuesStatus.*",
            "mapping": {
              "type": "nested"
            }
          }
        }

```

and here is example of the json:

```auto
"aqarchive": {
          "health": "GREEN",
          "queuesStatus": {
            "WP_ARCHIV_QUEUE": {
              "connectedFrom": {
                "gecoadarchatf1_eb_lan_at": "1/1",
                "gecoadarchatf2_eb_lan_at": "1/1",
                "gecoadatf2_eb_lan_at": "1/1",
                "gecoadatf1_eb_lan_at": "1/1"
              },
              "connected": true,
              "health": "GREEN",
              "delayed": false,
              "consumeMessages": true
            }
          }
        }

```

and here is the exception:

```auto
org.elasticsearch.index.mapper.MapperParsingException: object mapping for [queueStatus.queueByTypes.aqarchive.queuesStatus.WP_ARCHIV_QUEUE.connected] tried to parse field [connected] as object, but found a concrete value
        at org.elasticsearch.index.mapper.DocumentParser.parseObjectOrNested(DocumentParser.java:360) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:485) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.index.mapper.DocumentParser.parseDynamicValue(DocumentParser.java:834) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.index.mapper.DocumentParser.parseValue(DocumentParser.java:621) ~[elasticsearch-6.8.4.jar:6.8.4]
        at org.elasticsearch.index.mapper.DocumentParser.innerParseObject(DocumentParser.java:410) ~[elasticsearch-6.8.4.jar:6.8.4]

```

---

<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 20, 2020, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-parser-problem/238109/2 "2020-07-20T15:02:38Z")

</div>

Closed on July 20, 2020, 3:02pm UTC

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