# X of n shards failed after refreshing Index Pattern

**URL:** <https://discuss.elastic.co/t/x-of-n-shards-failed-after-refreshing-index-pattern/182285>\
**Category:** Kibana\
**Created:** [May 22, 2019, 4:37pm UTC](https://discuss.elastic.co/t/x-of-n-shards-failed-after-refreshing-index-pattern/182285 "2019-05-22T16:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elk\_123](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@elk\_123](https://discuss.elastic.co/u/elk_123)\
**Post date:** [May 22, 2019, 4:37pm UTC](https://discuss.elastic.co/t/x-of-n-shards-failed-after-refreshing-index-pattern/182285/1 "2019-05-22T16:37:00Z")

</div>

Hi all,  
I am very new to ELK and I have been mainly using Kibana to do some visualization, which means that all the data has already been loaded into Kibana for me.  
I have different indexes in Kibana and all of them were working fine until x of n shards started to fail in one of the indices (all the other ones are still working fine). The only thing that I can think about is that we asked for the Index Pattern to be refreshed in this specific Index that is failing.  
When I use the dev tools, the status of this index is still green and I can still query anything I want. But whenever I try to use the discover, visualize, or dashboard tabs of Kibana the shards fail and I cannot see any results.  
Is this because the Index Pattern was refreshed? If so, what should I do to solve the issue?

Any material or help is highly appreciated.  
Thanks.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [May 22, 2019, 7:54pm UTC](https://discuss.elastic.co/t/x-of-n-shards-failed-after-refreshing-index-pattern/182285/2 "2019-05-22T19:54:15Z")

</div>

Usually this happens if some of your indices in your index pattern have different mappings for a given field. Could you provide a screenshot of the error as well as provide your mappings for this index pattern?

---

<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:** [June 19, 2019, 8:17pm UTC](https://discuss.elastic.co/t/x-of-n-shards-failed-after-refreshing-index-pattern/182285/4 "2019-06-19T20:17:40Z")

</div>

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