[DOC] Refresh content and update screenshots based on 2.11 views (#5480)
* Refresh content and update screenshots based on 2.11 views Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Delete outdated Discover images Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/discover/index-discover.md Co-authored-by: Heather Halter <HDHALTER@AMAZON.COM> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> --------- Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Co-authored-by: Heather Halter <HDHALTER@AMAZON.COM>
|
@ -6,13 +6,14 @@ has_children: true
|
|||
---
|
||||
|
||||
# Discover
|
||||
Updated 2.10
|
||||
{: .label .label-purple }
|
||||
|
||||
**Discover** is a tool for exploring your data in OpenSearch Dashboards. You can use **Discover** to visually represent your data on a dashboard and provide a high-level view of key metrics.
|
||||
|
||||
{::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/alert-icon.png" class="inline-icon" alt="alert icon"/>{:/} The legacy **Discover** tool will be deprecated in OpenSearch 2.11. The updated **Discover** tool provides new features and enhancements that make the data exploration experience in OpenSearch Dashboards more intuitive and user friendly. To use the updated tool now, install the [latest version of OpenSearch Dashboards](https://opensearch.org/downloads.html) or try out these features using [OpenSearch Playground](https://playground.opensearch.org/app/home#/).
|
||||
{: .note}
|
||||
The following image represents a typical **Discover** page using sample data.
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/discover-app.png" alt="Discover start screen" width="700">
|
||||
|
||||
## Get started
|
||||
|
||||
In this tutorial, you'll learn about using **Discover** to:
|
||||
|
||||
|
@ -21,7 +22,7 @@ In this tutorial, you'll learn about using **Discover** to:
|
|||
- Share the data findings.
|
||||
- Set alerts.
|
||||
|
||||
#### Prerequisites
|
||||
### Prerequisites
|
||||
|
||||
The following are prerequisites for using **Discover**:
|
||||
|
||||
|
@ -29,86 +30,97 @@ The following are prerequisites for using **Discover**:
|
|||
- Add OpenSearch [sample data]({{site.url}}{{site.baseurl}}/dashboards/quickstart/) or import your own data into OpenSearch.
|
||||
- Have a foundational understanding of OpenSearch [documents and indexes]({{site.url}}{{site.baseurl}}/im-plugin/index/).
|
||||
|
||||
## Import data
|
||||
## Add data
|
||||
|
||||
You must add data to OpenSearch before you can start analyzing it. This tutorial uses sample data. To add the sample data, follow these steps:
|
||||
Data must be added to OpenSearch before it can be analyzed. In this tutorial, you'll use the sample data. To learn about importing your own data, see [Managing indexes]({{site.url}}{{site.baseurl}}/im-plugin/index/).
|
||||
|
||||
To add the sample data, follow these steps:
|
||||
|
||||
1. On the OpenSearch Dashboards home page, choose **Add sample data**.
|
||||
2. Choose the desired sample data and select the **Add data** button. An example is shown in the following image.
|
||||
2. Choose the desired sample data and select the **Add data** button. A screenshot of the **Add sample data** interface is shown in the following image.
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/sample-data.png" alt="Add sample data interface" width="700"/>
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/add-sample.png" alt="Add sample data interface" width="700">
|
||||
|
||||
{::nomarkdown}<img src="{{site.url}}{{site.baseurl}}//images/icons/info-icon.png" class="inline-icon" alt="info icon"/>{:/} **Note**<br>To learn about importing your own data, see [Managing indexes]({{site.url}}{{site.baseurl}}/im-plugin/index/).
|
||||
{: .note}
|
||||
|
||||
## Define your search
|
||||
## Define the search
|
||||
|
||||
To define a search, follow these steps:
|
||||
|
||||
1. On the OpenSearch Dashboards navigation menu, select **Discover**.
|
||||
2. Choose the data you want to work with. In this case, choose `opensearch_dashboards_sample_data_flights` from the upper-left dropdown menu.
|
||||
3. Select the calendar icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/calendar-oui.png" class="inline-icon" alt="calendar icon"/>{:/}) or clock icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/clock-icon.png" class="inline-icon" alt="clock icon"/>{:/}) to change the time range of your search. An example is shown in the following image.
|
||||
3. Select the calendar icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/calendar-oui.png" class="inline-icon" alt="calendar icon"/>{:/}) to change the time range of your search and then select **Refresh**.
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/discover-ui.png" alt="Discover interface showing flight sample data query" width="700"/>
|
||||
You'll see a view similar to the one in the following image.
|
||||
|
||||
## Add data fields and get data details
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/define-search.png" alt="Discover interface showing search of flight sample data for Last 7 days" width="700">
|
||||
|
||||
## Add data fields and view data details
|
||||
|
||||
The document table contains document data. Each row represents a single document, and each column contains a different document field representing metrics such as flight destination, average ticket price, and flight delay. You can add, delete, or modify data fields in a document table as needed to meet your data analysis requirements.
|
||||
|
||||
To add or delete fields in a document table, follow these steps:
|
||||
|
||||
1. View the data fields listed under **Available fields** and select the plus icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/plus-icon.png" class="inline-icon" alt="plus icon"/>{:/}) to add the desired fields to the document table. The field will be automatically added to both **Selected fields** and the document table. For this example, choose the fields `Carrier`, `AvgTicketPrice`, and `Dest`.
|
||||
1. To arrange or sort the columns, select the column header containing the field name and select the desired action. An example is shown in the following image.
|
||||
2. To arrange or sort the columns, select **Sort fields** > **Pick fields to sort by** and then drag and drop the fields in the order you want them to be ordered.
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/arrange-columns.png" alt="Document table interface" width="700"/>
|
||||
You'll see a view similar to the one in the following image.
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/add-data-fields.png" alt="Discover interface showing adding and sorting data fields" width="700">
|
||||
|
||||
You can view individual or multiple fields in the document table. To gather information about the data in the document table, follow these steps:
|
||||
|
||||
1. Choose the inspect icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/inspect-icon.png" class="inline-icon" alt="inspect icon"/>{:/}) to open the **Document Details** window.
|
||||
1. Review the data details. You can switch between the **Table** and **JSON** tabs to view the data in your preferred format.
|
||||
1. Select **View surrounding documents** to view data for other log entries either preceding or following your current document or select **View single document** to view a particular log entry.
|
||||
1. From the data table's left-side column, choose the inspect icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/inspect-icon.png" class="inline-icon" alt="inspect icon"/>{:/}) to open the **Document Details** window. Select the minimize icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/minimize-icon.png" class="inline-icon" alt="minimize icon"/>{:/}) to close the **Document Details** window.
|
||||
2. Review the data details. You can switch between the **Table** and **JSON** tabs to view the data in your preferred format.
|
||||
3. Select **View surrounding documents** to view data for other log entries either preceding or following your current document or select **View single document** to view a particular log entry.
|
||||
|
||||
### Search your data
|
||||
You'll see a view similar to the one in the following image.
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/doc-details.png" alt="Document details interface" width="700">
|
||||
|
||||
### Search the data
|
||||
|
||||
You can use the search toolbar or enter a [DQL]({{site.url}}{{site.baseurl}}/dashboards/discover/dql/) query using the **DevTools** console to search data. While the search toolbar is best for basic queries, such as field name queries, DQL is best for complex queries, such as term, string, Boolean, date, range, or nested queries. DQL provides suggestions for fields and operators as you type, helping you build structured queries.
|
||||
|
||||
To search data, follow these steps:
|
||||
|
||||
1. Enter a simple query in the DQL search bar. For example, enter `FlightDelay:true`, which searches for delayed flights.
|
||||
1. Select the **Update** button to the right of the search bar.
|
||||
1. Enter a more complex query in the DQL search bar, and then select **Update**. For example, enter `FlightDelay:true AND FlightDelayMin >= 60`, which searches the data for flights delayed by 60 minutes or more.
|
||||
2. Select the **Update** button to the right of the search bar.
|
||||
3. Enter a more complex query in the DQL search bar, and then select **Update**. For example, enter `FlightDelay:true AND FlightDelayMin >= 60`, which searches the data for flights delayed by 60 minutes or more.
|
||||
|
||||
### Filter your data
|
||||
### Filter the data
|
||||
|
||||
Filters allow you to narrow the results of a query by specifying certain criteria. You can filter by field, value, or range. The **Add filter** pop-up suggests the available fields and operators.
|
||||
|
||||
To filter your data, follow these steps:
|
||||
|
||||
1. Under the DQL search bar, choose **Add filter**.
|
||||
1. Select the desired options from the **Field**, **Operator**, and **Value** dropdown lists. For example, select `Cancelled`, `is`, and `true`.
|
||||
1. Choose **Save**.
|
||||
1. To remove the filter, choose the cross icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/cross-icon.png" class="inline-icon" alt="cross icon"/>{:/}) next to the filter name.
|
||||
1. Add more filters to further explore the data.
|
||||
2. Select the desired options from the **Field**, **Operator**, and **Value** dropdown lists. For example, select `Cancelled`, `is`, and `true`.
|
||||
3. Choose **Save**.
|
||||
4. To remove the filter, choose the cross icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/cross-icon.png" class="inline-icon" alt="cross icon"/>{:/}) next to the filter name.
|
||||
5. Add more filters to further explore the data.
|
||||
|
||||
## Save a search
|
||||
|
||||
To save your search, including the query text, filters, and current data view, follow these steps:
|
||||
|
||||
1. Select **Save** in the upper-right corner.
|
||||
1. Give the search a title, and then choose **Save**.
|
||||
1. Select **Open** to access the saved search.
|
||||
2. Give the search a title, and then choose **Save**.
|
||||
3. Select **Open** to access the saved search.
|
||||
|
||||
## Create visual representations of your findings
|
||||
## Create data visualizations in Discover
|
||||
|
||||
To create visualizations of your data findings, follow these steps:
|
||||
To create visualizations of the data findings using the **Discover** app, follow these steps:
|
||||
|
||||
1. Select the inspect icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/inspect-icon.png" class="inline-icon" alt="inspect icon"/>{:/}) next to the field you want to visualize. An example is shown in the following image.
|
||||
1. Select the inspect icon ({::nomarkdown}<img src="{{site.url}}{{site.baseurl}}/images/icons/inspect-icon.png" class="inline-icon" alt="inspect icon"/>{:/}) next to the field you want to visualize.
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/discover-visual.png" alt="Visualize button in Discover" width="400"/>
|
||||
You'll see a view similar to the following image.
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/visualize-discover.png" alt="Visualize data findings interface" width="700"/>
|
||||
|
||||
2. Select the **Visualize** button. A visualization is displayed. An example is shown in the following image.
|
||||
2. Select the **Visualize** button. The **Visualize** app opens and a visualization is displayed. Learn more about the **Visualize** app and data visualizations in [Building data visualizations]({{site.url}}{{site.baseurl}}/dashboards/visualize/viz-index/).
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/visualize-discover.png" alt="Visual representation of data" width="700"/>
|
||||
You'll see a view similar to the following image.
|
||||
|
||||
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/visualization-flight.png" alt="Data visualization of flight sample data field destination" width="700"/>
|
||||
|
||||
## Set alerts
|
||||
|
||||
|
|
After Width: | Height: | Size: 338 KiB |
After Width: | Height: | Size: 143 KiB |
After Width: | Height: | Size: 562 KiB |
After Width: | Height: | Size: 338 KiB |
After Width: | Height: | Size: 392 KiB |
Before Width: | Height: | Size: 333 KiB |
Before Width: | Height: | Size: 578 KiB |
Before Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 264 KiB |
After Width: | Height: | Size: 244 KiB |
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 181 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 4.5 KiB |