Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Security Solution][Serverless] - Improve security solution per…
…formance (#194241) (#194588) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution][Serverless] - Improve security solution performance (#194241)](#194241) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Michael Olorunnisola","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-27T18:45:45Z","message":"[Security Solution][Serverless] - Improve security solution performance (#194241)\n\n## Summary\r\n\r\nThe goal of this PR is to improve the default performance of many of our\r\nsecurity solution views.\r\n\r\n1. Upon scale testing, it was observed that the default events histogram\r\naggregation was a source of application slowness, so to improve the\r\nperformance of the default security experience, we've made the default\r\nbreakdown for the events histogram `No Breakdown` similar to what is\r\nseen in the default discover histogram experience.\r\n\r\n2. After looking through some telemetry, it was observed that the field\r\nlist query run in the background for timeline can also take a\r\nsignificant amount of time based on the user's field count, so we now\r\nonly run that query after timeline has been opened.\r\n\r\n### Demos\r\n#### 1. By default the events visualizations on the overview and explore\r\nevents pages will not have an aggregation. The user will have to\r\nmanually select the breakdown they desire:\r\nhttps://github.com/elastic/kibana/commit/d354d27962ebbd6d5fda19e912ec344ffe8a6c75\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a6d6987b-73fc-4735-9c37-973917c2fa2d\r\n\r\n\r\n#### 2. Timeline fields list will only load after the first interaction\r\nwith timeline:\r\nhttps://github.com/elastic/kibana/commit/ad557260d8f9c5dd0810a5a6aa51e5de0430000f\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/0ad2e903-ac15-4daa-925b-da8ad05e80dd\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/27d5d3d5-02c8-49b5-b699-239ebc36b16c","sha":"e45d97b26c6d0e0798d620ad0b097cad9009c179","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:skip","v9.0.0","Team:Threat Hunting:Investigations","Team:Threat Hunting:Explore","backport:prev-minor","v8.16.0"],"number":194241,"url":"https://github.com/elastic/kibana/pull/194241","mergeCommit":{"message":"[Security Solution][Serverless] - Improve security solution performance (#194241)\n\n## Summary\r\n\r\nThe goal of this PR is to improve the default performance of many of our\r\nsecurity solution views.\r\n\r\n1. Upon scale testing, it was observed that the default events histogram\r\naggregation was a source of application slowness, so to improve the\r\nperformance of the default security experience, we've made the default\r\nbreakdown for the events histogram `No Breakdown` similar to what is\r\nseen in the default discover histogram experience.\r\n\r\n2. After looking through some telemetry, it was observed that the field\r\nlist query run in the background for timeline can also take a\r\nsignificant amount of time based on the user's field count, so we now\r\nonly run that query after timeline has been opened.\r\n\r\n### Demos\r\n#### 1. By default the events visualizations on the overview and explore\r\nevents pages will not have an aggregation. The user will have to\r\nmanually select the breakdown they desire:\r\nhttps://github.com/elastic/kibana/commit/d354d27962ebbd6d5fda19e912ec344ffe8a6c75\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a6d6987b-73fc-4735-9c37-973917c2fa2d\r\n\r\n\r\n#### 2. Timeline fields list will only load after the first interaction\r\nwith timeline:\r\nhttps://github.com/elastic/kibana/commit/ad557260d8f9c5dd0810a5a6aa51e5de0430000f\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/0ad2e903-ac15-4daa-925b-da8ad05e80dd\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/27d5d3d5-02c8-49b5-b699-239ebc36b16c","sha":"e45d97b26c6d0e0798d620ad0b097cad9009c179"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194241","number":194241,"mergeCommit":{"message":"[Security Solution][Serverless] - Improve security solution performance (#194241)\n\n## Summary\r\n\r\nThe goal of this PR is to improve the default performance of many of our\r\nsecurity solution views.\r\n\r\n1. Upon scale testing, it was observed that the default events histogram\r\naggregation was a source of application slowness, so to improve the\r\nperformance of the default security experience, we've made the default\r\nbreakdown for the events histogram `No Breakdown` similar to what is\r\nseen in the default discover histogram experience.\r\n\r\n2. After looking through some telemetry, it was observed that the field\r\nlist query run in the background for timeline can also take a\r\nsignificant amount of time based on the user's field count, so we now\r\nonly run that query after timeline has been opened.\r\n\r\n### Demos\r\n#### 1. By default the events visualizations on the overview and explore\r\nevents pages will not have an aggregation. The user will have to\r\nmanually select the breakdown they desire:\r\nhttps://github.com/elastic/kibana/commit/d354d27962ebbd6d5fda19e912ec344ffe8a6c75\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a6d6987b-73fc-4735-9c37-973917c2fa2d\r\n\r\n\r\n#### 2. Timeline fields list will only load after the first interaction\r\nwith timeline:\r\nhttps://github.com/elastic/kibana/commit/ad557260d8f9c5dd0810a5a6aa51e5de0430000f\r\n\r\n**Before:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/0ad2e903-ac15-4daa-925b-da8ad05e80dd\r\n\r\n\r\n**After:**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/27d5d3d5-02c8-49b5-b699-239ebc36b16c","sha":"e45d97b26c6d0e0798d620ad0b097cad9009c179"}},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
- Loading branch information