# PUT "ignore\_malformed" on index\_template

**URL:** <https://discuss.elastic.co/t/put-ignore-malformed-on-index-template/296861>\
**Category:** Elasticsearch\
**Created:** [February 10, 2022, 2:58pm UTC](https://discuss.elastic.co/t/put-ignore-malformed-on-index-template/296861 "2022-02-10T14:58:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [February 10, 2022, 2:58pm UTC](https://discuss.elastic.co/t/put-ignore-malformed-on-index-template/296861/1 "2022-02-10T14:58:59Z")

</div>

Hi,

Is it possible to insert the parameter "ignore\_malformed" on a template by a PUT?

My actual config is:

GET \_template/http-access

```auto
{
  "http-access" : {
    "order" : 0,
    "version" : 60001,
    "index_patterns" : [
      "http-access-*"

...

        "client_ip" : {
          "type" : "ip"
        },
        "corpname" : {
          "type" : "keyword"
        },
        "category" : {
          "type" : "keyword"
        }
      }
    },
    "aliases" : { }
  }
}

```

So i would like to insert: "ignore\_malformed": true on client\_ip:

```auto
"client_ip" : {
 "type" : "ip"
 "ignore_malformed": true

```

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 10, 2022, 11:34pm UTC](https://discuss.elastic.co/t/put-ignore-malformed-on-index-template/296861/2 "2022-02-10T23:34:36Z")

</div>

That should work - [ignore\_malformed | Elasticsearch Guide [8.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/ignore-malformed.html). Does it not?

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [February 11, 2022, 8:14am UTC](https://discuss.elastic.co/t/put-ignore-malformed-on-index-template/296861/3 "2022-02-11T08:14:36Z")

</div>

Hi Mark,

i use ILM system, so there isn't only a index. For this reason i would like to know if it correct to insert the parameter at template level.

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 11, 2022, 8:17am UTC](https://discuss.elastic.co/t/put-ignore-malformed-on-index-template/296861/4 "2022-02-11T08:17:42Z")

</div>

Yes, it can be applied in a template.

---

<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 11, 2022, 8:18am UTC](https://discuss.elastic.co/t/put-ignore-malformed-on-index-template/296861/5 "2022-03-11T08:18:30Z")

</div>

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