# How to set total limit field to be other than 1000 by default

**URL:** <https://discuss.elastic.co/t/how-to-set-total-limit-field-to-be-other-than-1000-by-default/243564>\
**Category:** Elasticsearch\
**Created:** [August 3, 2020, 12:35pm UTC](https://discuss.elastic.co/t/how-to-set-total-limit-field-to-be-other-than-1000-by-default/243564 "2020-08-03T12:35:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdul\_Hameed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdul_hameed/32/46158_2.png) [@Abdul\_Hameed](https://discuss.elastic.co/u/Abdul_Hameed)\
**Post date:** [August 3, 2020, 12:35pm UTC](https://discuss.elastic.co/t/how-to-set-total-limit-field-to-be-other-than-1000-by-default/243564/1 "2020-08-03T12:35:28Z")

</div>

Hi,

I would like to increase the limit of total fields for my indices.  
I know that we can change it in Kibana by sending an API call as such:

```auto
PUT logstash-*/_settings
{
  "index.mapping.total_fields.limit": 5000
}

```

But this can be done only for the indices that are already created.  
How do I set the default value of total field limit before the index is created?

Thanks and Regards  
Hameed

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [August 3, 2020, 2:01pm UTC](https://discuss.elastic.co/t/how-to-set-total-limit-field-to-be-other-than-1000-by-default/243564/2 "2020-08-03T14:01:10Z")

</div>

That can be done in an index template.

---

<div class="post-metadata">

**Author:** ![Abdul\_Hameed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdul_hameed/32/46158_2.png) [@Abdul\_Hameed](https://discuss.elastic.co/u/Abdul_Hameed)\
**Post date:** [August 3, 2020, 2:07pm UTC](https://discuss.elastic.co/t/how-to-set-total-limit-field-to-be-other-than-1000-by-default/243564/3 "2020-08-03T14:07:26Z")

</div>

Sorry, I am new to this.  
Can you tell me how?

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [August 3, 2020, 9:30pm UTC](https://discuss.elastic.co/t/how-to-set-total-limit-field-to-be-other-than-1000-by-default/243564/4 "2020-08-03T21:30:18Z")

</div>

Example here: [https://stackoverflow.com/questions/52653056/elasticsearch-field-limit-more-than-1000](https://stackoverflow.com/questions/52653056/elasticsearch-field-limit-more-than-1000) (in the first answer)

---

<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:** [August 31, 2020, 9:30pm UTC](https://discuss.elastic.co/t/how-to-set-total-limit-field-to-be-other-than-1000-by-default/243564/5 "2020-08-31T21:30:19Z")

</div>

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