# Get current number of fields in index

**URL:** <https://discuss.elastic.co/t/get-current-number-of-fields-in-index/91334>\
**Category:** Elasticsearch\
**Created:** [June 29, 2017, 6:32pm UTC](https://discuss.elastic.co/t/get-current-number-of-fields-in-index/91334 "2017-06-29T18:32:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![msavoury](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@msavoury](https://discuss.elastic.co/u/msavoury)\
**Post date:** [June 29, 2017, 6:32pm UTC](https://discuss.elastic.co/t/get-current-number-of-fields-in-index/91334/1 "2017-06-29T18:32:23Z")

</div>

I'd like to see how close I am to reaching the limit of fields in my index (currently set to 1000). In Kibana, my index pattern says the index has a total of 76 fields. However, on the discover tab, I have over 500 fields to choose from. How can I determine how many fields count towards the limit?

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [July 7, 2017, 1:31pm UTC](https://discuss.elastic.co/t/get-current-number-of-fields-in-index/91334/2 "2017-07-07T13:31:50Z")

</div>

Hm, to be honest I'm not sure how Kibana is deriving those values. But you can check the current set of fields by using the [Get Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html):

```auto
GET /my_index/_mapping

```

You'll have to parse the response and count the number of fields, but that gives you all the information needed.

---

<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 4, 2017, 1:31pm UTC](https://discuss.elastic.co/t/get-current-number-of-fields-in-index/91334/3 "2017-08-04T13:31:57Z")

</div>

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