# Elasticsearch Component Template Increase Total Mappings Limit

**URL:** <https://discuss.elastic.co/t/elasticsearch-component-template-increase-total-mappings-limit/307047>\
**Category:** Elasticsearch\
**Created:** [June 13, 2022, 2:50pm UTC](https://discuss.elastic.co/t/elasticsearch-component-template-increase-total-mappings-limit/307047 "2022-06-13T14:50:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [June 13, 2022, 2:50pm UTC](https://discuss.elastic.co/t/elasticsearch-component-template-increase-total-mappings-limit/307047/1 "2022-06-13T14:50:51Z")

</div>

Hi All,

I was wondering if there is a way to increase the total mappings limit on Component Template?

I have a component template with \> 1000 mappings and am hitting the error:

```auto
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Limit of total fields [1000] has been exceeded"}],"type":"illegal_argument_exception","reason":"Limit of total fields [1000] has been exceeded"},"status":400}

```

Looking through the docs, I see a setting for [Index Mapping Limit](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-settings-limit.html#mapping-settings-limit), but I don't see any settings that allow for increasing the limit at the component template level.

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [June 13, 2022, 4:10pm UTC](https://discuss.elastic.co/t/elasticsearch-component-template-increase-total-mappings-limit/307047/2 "2022-06-13T16:10:11Z")

</div>

Hi @BenB196

Read this [post](https://discuss.elastic.co/t/approaches-to-deal-with-limit-of-total-fields-1000-in-index-has-been-exceeded/241039).

---

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [June 13, 2022, 4:21pm UTC](https://discuss.elastic.co/t/elasticsearch-component-template-increase-total-mappings-limit/307047/3 "2022-06-13T16:21:23Z")

</div>

Hi @RabBit_BR thanks for the link, I've looked at that post, but I don't think it works 100% for me. A point of clarification I guess I should make is that the component template is generated by the ECS generator tooling, so it comes out to be a single component template with the large mapping structure.

The post I think also focuses on more about custom indexes, where I am actually extending existing Elastic (beats) indexes with component templates, so this is where I think a more component template-oriented solution is required.

---

<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 11, 2022, 4:21pm UTC](https://discuss.elastic.co/t/elasticsearch-component-template-increase-total-mappings-limit/307047/4 "2022-07-11T16:21:56Z")

</div>

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