Troubleshooting OpenSearch UI applications
The following topics cover problems that are specific to OpenSearch UI. The sections in this topic cover problems that you can resolve inside the interface itself.
Resolving no results in Discover
If Discover reports that no results were found, check the following, in order:
-
Expand the time range. The default range is the last 15 minutes. Choose the date picker, and then choose a longer range, such as the last 7 days or the last 30 days.
-
Check the index pattern. The data source selector must point to the correct index pattern. If the list is empty, choose Manage workspace, choose Index patterns, and create one.
-
Verify the time field. The index pattern must have a valid time field. If the time field does not match the timestamp field in your data, Discover cannot find results.
Resolving dashboard panel errors
A panel that reports Expected exactly 1 result for data_source_name "X" but got
0 results references a data source that does not exist in the current
environment. This is common after a migration. Choose Manage
workspace, choose Data sources, and
confirm that the data source the visualization references is accessible.
Resolving an empty data source selector
If the data selector shows an empty list, you have not created any index patterns for the workspace. Choose Manage workspace, choose Index patterns, and create an index pattern before you continue.
Switching to PPL or SQL in Discover
To change the query language in Discover
-
Choose DQL next to the search bar.
-
In the language selector, choose PPL or SQL.
-
For PPL, begin the query with
source =.index-name
Improving slow dashboard loading
-
Reduce the time range. A 30-day range is substantially slower than a 7-day range.
-
Reduce the number of panels. Each panel runs a separate query.
-
Avoid wildcard index patterns, which can match more indexes than you need.
-
Check the health of the domain. Slow queries can indicate that the domain needs to be scaled.