# How to increase number of fields in index template?

**URL:** <https://discuss.elastic.co/t/how-to-increase-number-of-fields-in-index-template/122851>\
**Category:** Logstash\
**Created:** [March 7, 2018, 9:15am UTC](https://discuss.elastic.co/t/how-to-increase-number-of-fields-in-index-template/122851 "2018-03-07T09:15:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vitaly\_il](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vitaly_il/32/130964_2.png) [@Vitaly\_il](https://discuss.elastic.co/u/Vitaly_il)\
**Post date:** [March 7, 2018, 9:15am UTC](https://discuss.elastic.co/t/how-to-increase-number-of-fields-in-index-template/122851/1 "2018-03-07T09:15:02Z")

</div>

I added total\_fields.limit into my default logstash index template:

```
  "settings" : {
       "number_of_shards" : 1,
       "number_of_replicas": 0,
       "index.mapping.total_fields.limit" : "2000"
                 }

```

But when I check the new index settings (GET \_settings call), I don't see total\_fields property updated:

```
"settings" : {
  "index" : {
    "creation_date" : "1520413126830",
    "number_of_shards" : "1",
    "number_of_replicas" : "0",
    "uuid" : "UE7a0kuUS5mjhcHieAomTw",
    "version" : {
      "created" : "5060399"
    }

```

Any ideas?  
Thank you,  
Vitaly  
PS: I'm with 5.6 version.

---

<div class="post-metadata">

**Author:** ![Vitaly\_il](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vitaly_il/32/130964_2.png) [@Vitaly\_il](https://discuss.elastic.co/u/Vitaly_il)\
**Post date:** [March 7, 2018, 12:27pm UTC](https://discuss.elastic.co/t/how-to-increase-number-of-fields-in-index-template/122851/2 "2018-03-07T12:27:47Z")

</div>

Answering to myself - because I tried to update existing template (and not add the new one), I should delete the current template first.

---

<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:** [April 4, 2018, 12:27pm UTC](https://discuss.elastic.co/t/how-to-increase-number-of-fields-in-index-template/122851/3 "2018-04-04T12:27:55Z")

</div>

Closed on April 4, 2018, 12:27pm UTC

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