# Kibana 7 can't load index pattern

**URL:** <https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167>\
**Category:** Kibana\
**Created:** [May 8, 2019, 12:02pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167 "2019-05-08T12:02:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jehutywong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jehutywong/32/50527_2.png) [@Jehutywong](https://discuss.elastic.co/u/Jehutywong)\
**Post date:** [May 8, 2019, 12:02pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/1 "2019-05-08T12:02:29Z")

</div>

Kibana: 7.0.1  
ES: 7.0.1

When i create index pattern in Kibana, it can load the fields in the indexes. However, when i go to discovery page, it prompts me "In order to visualize and explore data in Kibana, you'll need to create an index pattern to retrieve data from Elasticsearch."

I can reload this index pattern by ID like this though:  
/app/kibana#/management/kibana/index\_patterns/83c2bf60-7188-11e9-8feb-fd1dd5f8f608?\_g=()&\_a=(tab:indexedFields)

Any advise?

---

<div class="post-metadata">

**Author:** ![Jehutywong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jehutywong/32/50527_2.png) [@Jehutywong](https://discuss.elastic.co/u/Jehutywong)\
**Post date:** [May 8, 2019, 12:05pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/2 "2019-05-08T12:05:45Z")

</div>

Also, when i go to Saved Objects, i have this error "Unable find saved objects Error: Bad Request"

response log:  
"res":{"statusCode":400,"responseTime":68,"contentLength":9},"message":"GET /api/saved\_objects/\_find?per\_page=20&page=1&fields=title&fields=id&search\_fields=title&type=index-pattern&type=visualization&type=dashboard&type=search&sort\_field=type&default\_search\_operator=OR 400 68ms - 9.0B"}

---

<div class="post-metadata">

**Author:** ![Jehutywong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jehutywong/32/50527_2.png) [@Jehutywong](https://discuss.elastic.co/u/Jehutywong)\
**Post date:** [May 9, 2019, 12:34am UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/3 "2019-05-09T00:34:29Z")

</div>

It turns out i have to manually choose default space before i can save objects.  
I think the default space should be automatically selected

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 9, 2019, 3:47pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/4 "2019-05-09T15:47:20Z")

</div>

Go to management-\> advanced settings and set `defaultIndex` to `83c2bf60-7188-11e9-8feb-fd1dd5f8f608`

 ![19%20AM](https://us1.discourse-cdn.com/elastic/original/3X/8/0/80a9955355983b1e30c7aaeec4ab3d24a49946e1.png)

---

<div class="post-metadata">

**Author:** ![Jehutywong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jehutywong/32/50527_2.png) [@Jehutywong](https://discuss.elastic.co/u/Jehutywong)\
**Post date:** [May 10, 2019, 6:07am UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/5 "2019-05-10T06:07:07Z")

</div>

Good to know, Thanks @Nathan_Reese

---

<div class="post-metadata">

**Author:** ![JackLandry](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JackLandry](https://discuss.elastic.co/u/JackLandry)\
**Post date:** [May 10, 2019, 11:12am UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/6 "2019-05-10T11:12:26Z")

</div>

Hello elastic team.  
I have the same issue using ES 7.0.0 and kibana 7.0.1. I can create an index pattern but when i go to discovery page , it prompts me "In order to visualize and explore data in Kibana, you'll need to create an index pattern to retrieve data from Elasticsearch.".  
I already try the word around proposed by @Nathan_Reese but it still does not work for me

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 10, 2019, 12:42pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/7 "2019-05-10T12:42:53Z")

</div>

@JackLandry Do you have any indices in Elasticsearch and Index patterns in Kibana? If not, load some [sample data](https://www.elastic.co/guide/en/kibana/current/tutorial-sample-data.html) to get everything initialized. Sample data will allow you to explore Kibana without having to setup any data flows.

---

<div class="post-metadata">

**Author:** ![JackLandry](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JackLandry](https://discuss.elastic.co/u/JackLandry)\
**Post date:** [May 10, 2019, 12:54pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/8 "2019-05-10T12:54:34Z")

</div>

@Nathan_Reese yes i have some data in my cluster and i also try to load the sample data as describe in kibana documentation but still have the same issue. I am able to create index pattern but when i go to discovery page i have the same error message.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 10, 2019, 1:44pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/9 "2019-05-10T13:44:12Z")

</div>

Have you set `defaultIndex` advanced setting to an saved object id of one of your index patterns?

---

<div class="post-metadata">

**Author:** ![JackLandry](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JackLandry](https://discuss.elastic.co/u/JackLandry)\
**Post date:** [May 10, 2019, 2:09pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/10 "2019-05-10T14:09:07Z")

</div>

Yes I set this setting but still have the same issue  
here some pictures :  
the list of my indices

 ![Capture%20du%202019-05-10%2015-53-24](https://us1.discourse-cdn.com/elastic/original/3X/8/5/858c5c7b2b60cf92f95f1370153d0e511c00ba50.png)  
Index-pattern that i have created  
 ![Capture%20du%202019-05-10%2016-28-01](https://us1.discourse-cdn.com/elastic/original/3X/a/f/afef49bbaee85cd79dbc573c5c3be13d0f0881da.png)  
My defaultIndex setting :  
 ![Capture%20du%202019-05-10%2016-29-11](https://us1.discourse-cdn.com/elastic/original/3X/d/c/dce4b20d87b823bbbb0292eebb8a5672714c8751.png)

---

<div class="post-metadata">

**Author:** ![Jehutywong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jehutywong/32/50527_2.png) [@Jehutywong](https://discuss.elastic.co/u/Jehutywong)\
**Post date:** [May 10, 2019, 2:36pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/11 "2019-05-10T14:36:56Z")

</div>

The advanced settings is one thing. But from previous Kibana version, 2.x, 5.x and 6.x, the default index pattern should be created together with the creating of the first index pattern.

Indeed, from .kibana index, I could see the created partterns' id exist. i could even load the pattern by modifying the kibana url to specify pattern id. Somehow the newly created pattern name was not presenting in the Kibana "Index Patterns" page. The Discovery and other pages were also complaining no index pattern defined.

The difference in my case was that the "D" space indicator was instead a yellow "E" (E for error). After I changed to "D" space, everything back to normal.

---

<div class="post-metadata">

**Author:** ![Eran\_H](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eran_h/32/46227_2.png) [@Eran\_H](https://discuss.elastic.co/u/Eran_H)\
**Post date:** [May 15, 2019, 12:18pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/12 "2019-05-15T12:18:12Z")

</div>

I have the same problem using kibana & elasticsearch 7.0.1 docker images.

1. I successfully create an index pattern and can see the fields of my index
2. I can see the index patterns when searching .kibana index
3. However, the discover page doesn't find the index patterns (Using chrome network I saw this request returns empty results **https://.../api/saved\_objects/\_find?type=index-pattern&fields=title&per\_page=10000** )

---

<div class="post-metadata">

**Author:** ![Eran\_H](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eran_h/32/46227_2.png) [@Eran\_H](https://discuss.elastic.co/u/Eran_H)\
**Post date:** [May 15, 2019, 12:23pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/13 "2019-05-15T12:23:22Z")

</div>

Restarting my kibana docker I can now see all my index patterns.  
Then you need to set a default index pattern to use the Discover page.  
After that it worked.

---

<div class="post-metadata">

**Author:** ![Wojciech\_Kuligowski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wojciech_kuligowski/32/47063_2.png) [@Wojciech\_Kuligowski](https://discuss.elastic.co/u/Wojciech_Kuligowski)\
**Post date:** [May 29, 2019, 10:58am UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/14 "2019-05-29T10:58:47Z")

</div>

I have the same problem with ES 7.1.0 and kibana 7.1.0. I have also tried the newest kibana 7.1.1, but problem still occurrs. @JackLandry did you find any solution?

---

<div class="post-metadata">

**Author:** ![Wojciech\_Kuligowski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wojciech_kuligowski/32/47063_2.png) [@Wojciech\_Kuligowski](https://discuss.elastic.co/u/Wojciech_Kuligowski)\
**Post date:** [May 30, 2019, 7:06am UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/15 "2019-05-30T07:06:43Z")

</div>

I have finally found solution in another discussion - set kibana.index in kibana.yml to some new name, which causes creating new index for kibana. After restart index patterns work fine.

---

<div class="post-metadata">

**Author:** ![JackLandry](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JackLandry](https://discuss.elastic.co/u/JackLandry)\
**Post date:** [May 30, 2019, 9:26am UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/16 "2019-05-30T09:26:35Z")

</div>

Hello @Wojciech_Kuligowski in my case there was something wrong in my custom kibana index mapping. Fixing the kibana index mapping solved the probleme for me.

---

<div class="post-metadata">

**Author:** ![alchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alchy/32/47743_2.png) [@alchy](https://discuss.elastic.co/u/alchy)\
**Post date:** [June 11, 2019, 10:39am UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/17 "2019-06-11T10:39:22Z")

</div>

genius... but isn't it an error?

---

<div class="post-metadata">

**Author:** ![redrise](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@redrise](https://discuss.elastic.co/u/redrise)\
**Post date:** [June 14, 2019, 6:42am UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/18 "2019-06-14T06:42:40Z")

</div>

I had this issue when i stood up a new 7.0.1 stack, to fix it i just removed the existing .kibana index and restarted kibana.

---

<div class="post-metadata">

**Author:** ![albgus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/albgus/32/88012_2.png) [@albgus](https://discuss.elastic.co/u/albgus)\
**Post date:** [June 14, 2019, 9:08am UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/19 "2019-06-14T09:08:39Z")

</div>

I had the same / a similar issue. It seems that Kibana sets the wrong type on the type field in it's index mapping. It sets it as text instead of keyword which I guess means that Elasticsearch will not reliably return exact matches when querying for Saved objects of a specific type.

> [@Not possible to create Index patterns in Kibana](https://discuss.elastic.co/t/not-possible-to-create-index-patterns-in-kibana/185591/5):
>
> I have set fielddata=true on the type field of the ".kibana" index now, and now I do not get any error when if I query Saved Objects, and there is no Exception in the Elasticsearch logs anymore, so far so good. Although I can still not use any saved index patterns. Neither through Discover or even see them listed in Saved Objects. I can find the created index pattern object if I query Elasticsearch directly though.. UPDATE: Problem solved! I did another attempt and instead of setting fieldda…

---

<div class="post-metadata">

**Author:** ![meiyuan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meiyuan/32/44468_2.png) [@meiyuan](https://discuss.elastic.co/u/meiyuan)\
**Post date:** [June 27, 2019, 6:58pm UTC](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167/20 "2019-06-27T18:58:12Z")

</div>

Hi @JackLandry, can you share a bit more about what's wrong with your custom index and how did you fix it?

[Next page](https://discuss.elastic.co/t/kibana-7-cant-load-index-pattern/180167.md?page=2)
