# Kibana index pattern fields number doesn't match elasticsearch mapping fileds number

**URL:** https://discuss.elastic.co/t/kibana-index-pattern-fields-number-doesnt-match-elasticsearch-mapping-fileds-number/137760
**Category:** Kibana
**Created:** [June 28, 2018, 7:41am UTC](https://discuss.elastic.co/t/kibana-index-pattern-fields-number-doesnt-match-elasticsearch-mapping-fileds-number/137760 "2018-06-28T07:41:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![yishain11](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yishain11](https://discuss.elastic.co/u/yishain11)
#### Post date: [June 28, 2018, 7:41am UTC](https://discuss.elastic.co/t/kibana-index-pattern-fields-number-doesnt-match-elasticsearch-mapping-fileds-number/137760/1 "2018-06-28T07:41:12Z")

</div>

Hi.  
I have wierd contradiction between the number of fileds in elasticsearch and the number of fields in the corresponding kibana index.  
I have two indices in elasticsearch called: nul\_check\_1 and nul\_check\_2.  
I check how many mapping there are in both of them by running:  
`curl -s -XGET localhost:9200/nul_check*/_mapping?pretty | grep type | wc -l`  
I get the same number if I run this command for each index and summing up the results.  
When I check the kibana index that matches these indices, in "management" tab, I see less fields that what I saw in elasticsearch.  
Why is this happening?  
How can I assess how many fields there are? It's relevant because the cap of elasticsearch on 1000 fields by default.  
Thanks!

---

<div class="post-metadata">

### Author: ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)
#### Post date: [June 28, 2018, 7:56pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-fields-number-doesnt-match-elasticsearch-mapping-fileds-number/137760/2 "2018-06-28T19:56:27Z")

</div>

Kibana stores a copy of the elasticsearch mappings because we attach kibana specific metadata to fields (field formatters, etc). If the elasticsearch mappings update, Kibana's mappings need to be "refreshed" to get the latest. That should give you the up to date number of fields.

Refreshing can be done on the index management page, in the top right there's a refresh icon.

---

<div class="post-metadata">

### Author: ![yishain11](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yishain11](https://discuss.elastic.co/u/yishain11)
#### Post date: [July 2, 2018, 10:21am UTC](https://discuss.elastic.co/t/kibana-index-pattern-fields-number-doesnt-match-elasticsearch-mapping-fileds-number/137760/3 "2018-07-02T10:21:12Z")

</div>

Even after refreshing the number is still smaller.

---

<div class="post-metadata">

### Author: ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)
#### Post date: [July 2, 2018, 5:19pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-fields-number-doesnt-match-elasticsearch-mapping-fileds-number/137760/4 "2018-07-02T17:19:28Z")

</div>

I suspect the curl command is being too permissive. Are there multiple indices with the same mappings being returned? Are there any fields named "type"?

---

<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 30, 2018, 5:19pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-fields-number-doesnt-match-elasticsearch-mapping-fileds-number/137760/5 "2018-07-30T17:19:29Z")

</div>

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