Skip to content

Commit

Permalink
Add DQL guide (#5684) (#5842)
Browse files Browse the repository at this point in the history
* Add DQL guide



* Add all language options and setup steps



* Delete unused images



* Revised intro sentences



* Apply suggestions from code review




* Minor rewording



* Changed query descriptions and added example



* Apply suggestions from code review




* Update _dashboards/dql.md




* More editorial comments



---------





(cherry picked from commit f989581)

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Melissa Vagi <vagimeli@amazon.com>
Co-authored-by: Nathan Bower <nbower@amazon.com>
  • Loading branch information
4 people authored Dec 12, 2023
1 parent cd85f58 commit 271ccf7
Show file tree
Hide file tree
Showing 7 changed files with 329 additions and 98 deletions.
8 changes: 2 additions & 6 deletions _dashboards/discover/index-discover.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,9 @@ You'll see a view similar to the one in the following image.

## Searching 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.
You can use the search toolbar to enter a [DQL]({{site.url}}{{site.baseurl}}/dashboards/discover/dql/) or [query string]({{site.url}}{{site.baseurl}}/query-dsl/full-text/query-string/) query. The search toolbar is best for basic queries; for full query and filter capability, use [query domain-specific language (DSL)]({{site.url}}{{site.baseurl}}/query-dsl/index/) in the [Dev Tools console]({{site.url}}{{site.baseurl}}/dashboards/dev-tools/index-dev/).

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.
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.
For more information, see [Discover and Dashboard search toolbar]({{site.url}}{{site.baseurl}}/dashboards/index/#discover-and-dashboard-search-bar).

## Filtering the data

Expand Down
Loading

0 comments on commit 271ccf7

Please sign in to comment.