Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions explore-analyze/discover/inspect-grouped-stats.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
navigation_title: Inspect grouped STATS
applies_to:
serverless: preview
stack: preview 9.4
serverless: ga
stack: ga 9.7+, preview 9.4-9.6
products:
- id: kibana
type: how-to
Expand Down Expand Up @@ -102,6 +102,16 @@ Select the {icon}`boxes_vertical` actions button on any group row to:

If the grouping field isn't filterable, **Filter in** and **Filter out** are unavailable.

## Find a value in a group [find-value-in-group]
```{applies_to}
serverless: ga
stack: ga 9.7
```

To find a value in the documents of one group, expand the group, select **Find in table** in the group's table toolbar, and enter your text. **Discover** highlights the matches in that group and moves to each one as you step through them. To move between matches with the keyboard, refer to [](inspect-documents.md#in-table-search).

As you scroll through the group's documents, the group's row title and its toolbar stay in view. You can start a new search without scrolling back to the start of the group.

## Compare documents in a group [compare-documents-in-group]
```{applies_to}
serverless: preview
Expand All @@ -114,7 +124,7 @@ For the comparison settings and how **Discover** highlights differences, refer t

## Opt out of grouped results [opt-out-of-the-grouped-layout]

If you prefer the flat results table, you can switch grouped results off. When grouped results are active, Discover replaces the regular results table toolbar with a **Group by** button that carries a {icon}`flask` badge and shows the number of active groupings. Discover preselects the grouping field from your `STATS BY` clause. To go back to the flat results table and the regular toolbar, open the **Group by** menu and select **none**. The **Group by** button stays in the toolbar of the flat table. To bring the grouping back, open the menu again and select the grouping field.
If you prefer the flat results table, you can switch grouped results off. When grouped results are active, Discover replaces the regular results table toolbar with a **Group by** option that shows the number of active groupings. Discover preselects the grouping field from your `STATS BY` clause. To go back to the flat results table and the regular toolbar, open the **Group by** menu and select **none**. The **Group by** button stays in the toolbar of the flat table. To bring the grouping back, open the menu again and select the grouping field.

## Related pages

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If your logs are free-form messages, pattern analysis groups similar messages in
- This example uses the [web logs sample data](/manage-data/ingest/sample-data.md). To follow along, add it and select its data view, or use your own log data.

:::{tip}
:applies_to: { serverless: preview, stack: preview 9.4+ }
:applies_to: {"serverless": "ga", "stack": "ga 9.7+, preview 9.4-9.6"}
In {{esql}} mode, you can [group similar messages in a query](inspect-grouped-stats.md#pattern-rendering).
:::

Expand Down
Binary file modified explore-analyze/images/discover-esql-cascade-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ FROM kibana_sample_data_logs

**Result:** The table lists each HTTP response code with its event count. A chart appears above the table to visualize the aggregation, so you can see at a glance how traffic breaks down by status (200, 404, 503, and so on). A three-line query turned thousands of raw log entries into a breakdown with a chart. Notice that the field list in the sidebar now only shows the fields produced by the query (`event_count` and `response`), reflecting the narrower result set.

{applies_to}`serverless: preview` {applies_to}`stack: preview 9.4+` Instead of a flat table, Discover shows each response code as a group that you can expand to see the documents behind it. To return to a flat table, open the **Group by** menu and select **none**. Refer to [Inspect grouped STATS results in Discover](discover/inspect-grouped-stats.md).
{applies_to}`serverless: ga` {applies_to}`stack: ga 9.7+, preview 9.4-9.6` Instead of a flat table, Discover shows each response code as a group that you can expand to see the documents behind it. To return to a flat table, open the **Group by** menu and select **none**. Refer to [Inspect grouped STATS results in Discover](discover/inspect-grouped-stats.md).

:::{image} /explore-analyze/images/kibana-learning-tutorial-esql-aggregation.png
:alt: Discover showing a STATS aggregation as a bar chart of event count by response code, with the response codes listed as expandable groups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To run a log pattern analysis:
1. In your {{obs-serverless}} project, go to **Discover**. If **Discover** opens in {{esql}} mode, [switch to classic mode](/explore-analyze/discover/switch-esql-mode.md#revert-to-classic-mode). Then select **All logs** from the **Data view** menu.

:::{tip}
:applies_to: { serverless: preview, stack: preview 9.4+ }
:applies_to: {"serverless": "ga", "stack": "ga 9.7+, preview 9.4-9.6"}
To group log messages by pattern in {{esql}} mode instead, refer to [Inspect grouped STATS results in Discover](/explore-analyze/discover/inspect-grouped-stats.md).
:::
2. Apply any filters that you want.
Expand Down
Loading