Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error Accessing Index Patterns Without Corresponding Indices in OpenSearch Dashboards #5768

Closed
ghost opened this issue Jan 31, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jan 31, 2024

Describe the bug

When attempting to access an index pattern in OpenSearch Dashboards that does not have any corresponding indices, an error message is displayed: "Error: Could not locate that index-pattern-field (id: @timestamp)". This occurs in the OpenSearch Dashboards Discover Tab. After that error is thrown, the only way to fix it via refresh or clearing the cache. It can happen that there are no corresponding indices when e.g. index patterns are created via api calls/terraform or when the indices are deleted by index lifecycle management.

Steps to reproduce the behavior:

  1. Create an index pattern in OpenSearch Dashboards using Terraform, without having any existing indices that match this pattern.
  2. Go to OpenSearch Dashboards.
  3. Navigate to the Discover Tab.
  4. Attempt to select the newly created index pattern.
  5. Observe the error message: "Error: Could not locate that index-pattern-field (id: @timestamp)".

Expected behavior

The expected behavior would be for OpenSearch Dashboards to either not display or disable the selection of index patterns that do not have any corresponding indices. This would prevent the error from occurring and improve user experience by guiding them away from selecting non-functional index patterns.

OpenSearch Version
2.11.1 docker images
Dashboards Version
2.11.1 docker images
Plugins
All plugins that are in bundled when using docker container images.

Host/Environment (please complete the following information):

OS: Ubuntu 22.04
Browser and version: Firefox

@ghost ghost added bug Something isn't working untriaged labels Jan 31, 2024
@abbyhu2000 abbyhu2000 self-assigned this Feb 27, 2024
@abbyhu2000
Copy link
Member

@abbyhu2000 try to reproduce the issue.

@ghost
Copy link
Author

ghost commented Feb 27, 2024

@abbyhu2000 this issue was fixed in 2.12

@ghost ghost closed this as completed Feb 27, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant