-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] New Data Quality dashboard
Same family
category (…
…#167480) # [Security Solution] New Data Quality dashboard `Same family` category This PR introduces a new `Same family` category to the [Data Quality dashboard](https://www.elastic.co/guide/en/security/current/data-quality-dash.html). Fields with the `same family` tag that were previously counted in the `Incompatible fields` category are now counted in the new `Same family` category, per the annotated screenshot below: ![same_family_before_after_annotated](https://github.com/elastic/kibana/assets/4459398/c7c5d496-03e5-4e06-b837-85f2f16ab885) _Above - Left: previously, fields with the `same family` tag were counted as `Incompatible fields`, Right: in this PR, those fields are counted in the new `Same family` category_ The annotations on the _Right_ side of the screenshot above highlight (in this example): - The total `Incompatible fields` count was reduced - Some patterns, like `auditbeat-*` have significant reductions - The `Incompatible fields` count was reduced by one field - The new `Same family` category has one field - The `agent.type` field moved from the `Incompatible fields` category to the `Same family` category ## Details ### The new `Same family` category Fields with mappings in the same [family](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html) have exactly the same search behavior as the type specified by ECS, but may have different space usage or performance characteristics. The color of the `Same family` category is the same as the `Custom fields` category in badges and charts, per the screenshot below: ![same_family_color](https://github.com/elastic/kibana/assets/4459398/259b7e8e-3a52-482e-a419-edf715f8e462) _Above: The `Same family` tab's badge and chart legend color is the same as the `Custom fields` category_ ### The new `Same family` tab This PR introduces a new `Same family` tab, as shown in the screenshot below: ![same_family_tab](https://github.com/elastic/kibana/assets/4459398/f4da99cf-6fa4-4477-8a85-eec9d85c6787) _Above: The new `Same family` tab is selected_ In the screenshot above: - The callout includes a description of fields in the same family (moved from the `Incompatible fields` tab) - The `constant_keyword` text, yellow in previous versions (when it appered in the `Incompatible fields` tab), is blue - Only one action, `Copy to clipboard` is available in the `Same family` tab. The remaining text in this _Details_ section is the markdown copied to the clipboard for the example above: ### auditbeat-custom-index-1 | Result | Index | Docs | Incompatible fields | ILM Phase | Size | |--------|-------|------|---------------------|-----------|------| | ❌ | auditbeat-custom-index-1 | 2 (0.0%) | 3 | `unmanaged` | 13.1KB | ### **Incompatible fields** `3` **Same family** `1` **Custom fields** `4` **ECS compliant fields** `2` **All fields** `10` #### 1 Same family field mapping This field is defined by the Elastic Common Schema (ECS), version 8.6.1, but its mapping type doesn't exactly match. Fields with mappings in the same family have exactly the same search behavior as the type specified by ECS, but may have different space usage or performance characteristics. #### Same family field mappings - auditbeat-custom-index-1 | Field | ECS mapping type (expected) | Index mapping type (actual) | |-------|-----------------------------|-----------------------------| | agent.type | `keyword` | `constant_keyword` `same family` | ## Desk testing 1) Navigate to `Dev Tools` > `Console` 2) Execute the queries below: <details> <summary>Queries to create the `auditbeat-custom-index-1` example in this PR description</summary> ``` DELETE auditbeat-custom-index-1 PUT auditbeat-custom-index-1 PUT auditbeat-custom-index-1/_mapping { "properties": { "@timestamp": { "type": "date" }, "agent.type": { "type": "constant_keyword" }, "event.category": { "type": "constant_keyword" } } } POST auditbeat-custom-index-1/_doc { "@timestamp": "2023-02-06T09:41:49.668Z", "host": { "name": "foo" }, "event": { "category": "an_invalid_category" }, "some.field": "this", "source": { "port": 90210, "ip": "10.1.2.3" } } POST auditbeat-custom-index-1/_doc { "@timestamp": "2023-02-06T09:42:22.123Z", "host": { "name": "bar" }, "event": { "category": "an_invalid_category" }, "some.field": "space", "source": { "port": 867, "ip": "10.9.8.7" } } ``` </details> 3) Navigate to `Security` > `Dashboards` > `Data Quality` 4) Expand the `auditbeat-custom-index-1` index **Expected results** - The sum of the category badge counts, `3 + 1 + 4 + 2`, equals the total number of fields in the `All fields` [`10`] category: - `Incompatible fields` [`3`] - `Same family` [`1`] - `Custom fields` [`4`] - `ECS compliant fields` [`2`] - The `Incompatible fields` callout title is `3 incompatible fields` - The `Incompatible fields` callout does NOT include a description of same family fields - The `Incompatible fields` tab displays two fields with incompatible mappings - `host.name` (`keyword` vs `text`) - `source.ip` (`ip` vs `text`) - The `Incompatible fields` tab displays one field with incompatible field values - `event.category` (`an_invalid_category`) 5) Click the `Summary` tab **Expected results** - The `Summary` tab is focused - The chart legend includes a `Same family` entry, with a count of `1` - The `Same family` tab's badge color is the same as the `Custom fields` category - The `Same family` chart legend color is the same as the `Custom fields` category 6) Click the `Same family` legend item **Expected results** - The `Same family` tab is focused - One field, `agent.type`, is displayed - The `constant_keyword` Index mapping type is blue - The `same family` badge is yellow 7) Click `Copy to clipboard` **Expected result** - The expected markdown is copied to the clipboard: ``` ### auditbeat-custom-index-1 | Result | Index | Docs | Incompatible fields | ILM Phase | Size | |--------|-------|------|---------------------|-----------|------| | ❌ | auditbeat-custom-index-1 | 2 (0.0%) | 3 | `unmanaged` | 12.9KB | ### **Incompatible fields** `3` **Same family** `1` **Custom fields** `4` **ECS compliant fields** `2` **All fields** `10` #### 1 Same family field mapping This field is defined by the Elastic Common Schema (ECS), version 8.6.1, but its mapping type doesn't exactly match. Fields with mappings in the same family have exactly the same search behavior as the type specified by ECS, but may have different space usage or performance characteristics. #### Same family field mappings - auditbeat-custom-index-1 | Field | ECS mapping type (expected) | Index mapping type (actual) | |-------|-----------------------------|-----------------------------| | agent.type | `keyword` | `constant_keyword` `same family` | ```
- Loading branch information
1 parent
26e61c1
commit fe5abc9
Showing
46 changed files
with
1,492 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.