Kibana 7 can't load index pattern

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

1 Like

Good to know, Thanks @Nathan_Reese

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

1 Like

@JackLandry Do you have any indices in Elasticsearch and Index patterns in Kibana? If not, load some sample data to get everything initialized. Sample data will allow you to explore Kibana without having to setup any data flows.

@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.

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

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


Index-pattern that i have created

My defaultIndex setting :

1 Like

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.

1 Like

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)

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.

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?

1 Like

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.

3 Likes

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.

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

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.

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.

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

Hello,

I'm facing the same issue, index-pattern present in the index .kibana ( I can get them when curling elastic) however when I tried to access "Saved Object"kibana return a 400 Bad Request.

And elasticsearch have error logs that pop at the same time :

Caused by: java.lang.IllegalArgumentException: Fielddata is disabled on text fields by default. Set fielddata=true on [type] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead

So it seems that the template for .Kibana isn't correct ?
As we are a lot facing this, I opened a github issue on this :

1 Like

I'm having the same issue. Restarting the docker containers didn't work for me.

1 Like

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