# Get the total number of fields of a given index

**URL:** <https://discuss.elastic.co/t/get-the-total-number-of-fields-of-a-given-index/245566>\
**Category:** Elasticsearch\
**Created:** [August 19, 2020, 9:28am UTC](https://discuss.elastic.co/t/get-the-total-number-of-fields-of-a-given-index/245566 "2020-08-19T09:28:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CanardMoussant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/canardmoussant/32/45421_2.png) [@CanardMoussant](https://discuss.elastic.co/u/CanardMoussant)\
**Post date:** [August 19, 2020, 9:28am UTC](https://discuss.elastic.co/t/get-the-total-number-of-fields-of-a-given-index/245566/1 "2020-08-19T09:28:10Z")

</div>

I am facing update mapping errors on an ES (6.1) index because it seems we reached the limit `index.mapping.total_fields.limit`. The error is:

```auto
Limit of total fields [1200] in index [coin] has been exceeded

```

However, if I do:

```auto
$ curl -X GET "localhost:9200/coin/_mapping?pretty" | grep type | wc -l

```

I get only `1088`.

I would like to properly monitor when we are getting close to the limit, but it's not clear how to fetch the value that is actually used by ES internally. Is there a way to do that?

---

<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:** [September 16, 2020, 9:28am UTC](https://discuss.elastic.co/t/get-the-total-number-of-fields-of-a-given-index/245566/2 "2020-09-16T09:28:18Z")

</div>

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