question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Index patterns not loaded after creation of the index template for all indices pattern "*"

See original GitHub issue

Describe the bug

If we load an index template for all indices “*” pattern (before dashboards pod starts and is up) with following template settings, indices patterns are not loaded anymore and saved objects are also not visible anymore and we get “Unable find saved objects” error on screen.

"template" : { "settings" : { "index" : { "routing" : { "allocation" : { "include" : { "role" : "data" } } }, "refresh_interval" : "30s" } } }

We checked that problem is caused by the fact that .kibana* system indices are getting the all indices index template applied and has template setting for routing allocation. ".kibana_1" : { "settings" : { "index" : { "routing" : { "allocation" : { "include" : { "role" : "data" } } }, "refresh_interval" : "30s", "number_of_shards" : "1", "auto_expand_replicas" : "0-1", "provided_name" : ".kibana_1", "creation_date" : "1668430185144", "number_of_replicas" : "1", "uuid" : "sPO3PtfcRC2DVn_ynIcl_A", "version" : { "created" : "136247827" } } } }

To Reproduce Steps to reproduce the behavior:

  1. Go to Saved Objects

  2. See error saved-objects-missing

  3. But it seems, the saved object config is present there but not visible by default:

saved-objects-missing1
  1. And if we create an index pattern, it doesn’t get saved.
  2. We also noticed that, if we restart the dashboards pod, then dashboards gui starts to work fine!!

Expected behavior Opensearch dashboard functionality should not be impacted due to index allocation routing on .kibana* system indices.

OpenSearch Version 2.3.0

Dashboards Version 2.3.0

Plugins

No custom plugin enabled.

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
IanGabescommented, Dec 13, 2022

Hi @ananzh, to your repro steps i would add:

  • Have multi-tenancy enabled
  • Select the private or a shared tenant

We do not notice the issue on the Global tenant. Thanks!

0reactions
joshuarrrrcommented, Dec 23, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Kibana 7 can't load index pattern - Elastic Discuss
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...
Read more >
Can't create index pattern · Issue #15110 - Kibana - GitHub
After upgrading from Kibana 5.6 to Kibana 6 (and ElasticSearch), I can't create an index pattern. In the chrome console : "Cannot read ......
Read more >
1839961 – Sometimes the Kibana console couldn't display all ...
To me it seems that the filter used to implement DSL is operating on the field that is not indexed as keyword (but...
Read more >
Adding template for index patterns - how to solve related issues
This log message is an INFO message saying that a template has been created for a given index pattern. Elasticsearch applies templates to...
Read more >
Proper way to create index template that is applied to all in ...
Currently to match all indices you really need to use the * as the index pattern and the warning is there because it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found