# Cant update the mapping

**URL:** <https://discuss.elastic.co/t/cant-update-the-mapping/238031>\
**Category:** Elasticsearch\
**Created:** [June 22, 2020, 7:56am UTC](https://discuss.elastic.co/t/cant-update-the-mapping/238031 "2020-06-22T07:56:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandros888](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Alexandros888](https://discuss.elastic.co/u/Alexandros888)\
**Post date:** [June 22, 2020, 7:56am UTC](https://discuss.elastic.co/t/cant-update-the-mapping/238031/1 "2020-06-22T07:56:41Z")

</div>

Hello,

I cant map correctly the following field:

http.request.body.original

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e8bd89b08c6ffb14f148851fd1ab949feca93aca.png)

Currently part of my mapping looks like that for my apm indices:

```
"http" : {
          "dynamic" : "false",
          "properties" : {
            "request" : {
              "properties" : {
                "body" : {
                  "properties" : {
                    "bytes" : {
                      "type" : "long"
                    },
                    "content" : {
                      "type" : "keyword",
                      "fields" : {
                        "text" : {
                          "type" : "text",
                          "norms" : false
                        }
                      },
                      "ignore_above" : 1024
                    }
                  }
                },
                "bytes" : {
                  "type" : "long"
                },
                "headers" : {
                  "type" : "object",
                  "dynamic" : "true"
                },
                "method" : {
                  "type" : "keyword",
                  "ignore_above" : 1024
                },
                "referrer" : {
                  "type" : "keyword",
                  "ignore_above" : 1024
                },
                "socket" : {
                  "type" : "object",
                  "dynamic" : "true"
                }
              }
            }

```

But i want to make http field dynamic and also add the http.request.body.original field

i use the following code in order to create a mapping for that field in kibana:

```
PUT apm-*/_mapping
{
"http": {
          "dynamic": "true",
          "properties": {
            "request": {
              "properties": {
                "body": {
                  "properties": {
                    "original": {
                      "type": "text",
                      "index": true
                    }
                  }
                }
              }
            }
          }
}
}

```

Nevertheless as the logs and image below show i receive a mapping exception:

```
"type" : "mapper_parsing_exception",
        "reason" : "Root mapping definition has unsupported parameters: [http : {dynamic=true, properties={request={properties={body={properties={original={index=true, type=text}}}}}}}]"

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5ecef700fdb6cd25844cf75e47accb7fc7997f36.png)

How can i fix that problem?

Thank you

---

<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, 7:56am UTC](https://discuss.elastic.co/t/cant-update-the-mapping/238031/2 "2020-07-20T07:56:47Z")

</div>

Closed on July 20, 2020, 7:56am UTC

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