Commit graph

176 commits

Author SHA1 Message Date
Kibana Machine
6a854ca75b
[8.10] [Security Solution][Bug] Fixes visual issue in Safari (#165377) (#165448)
# Backport

This will backport the following commits from `main` to `8.10`:
- [[Security Solution][Bug] Fixes visual issue in Safari
(#165377)](https://github.com/elastic/kibana/pull/165377)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sergi
Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2023-09-01T10:14:51Z","message":"[Security
Solution][Bug] Fixes visual issue in Safari (#165377)\n\n##
Summary\r\n\r\nFixes issue in descriptions of landing page icons which
were always\r\ndisplaying in white color. It only happens in Safari,
other browsers\r\nshow the text in the correct color.\r\n\r\nFix: Remove
misuse of `color` property in `EuiText`
component\r\n\r\nBefore:\r\n\r\n\r\n![before](6ae6f235-4572-4ee7-9103-377869567a35)","sha":"befa48828c829211f0a7fe6bb7aef332de7e0b61","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Threat
Hunting","Team:Threat
Hunting:Explore","v8.10.0","v8.11.0"],"number":165377,"url":"https://github.com/elastic/kibana/pull/165377","mergeCommit":{"message":"[Security
Solution][Bug] Fixes visual issue in Safari (#165377)\n\n##
Summary\r\n\r\nFixes issue in descriptions of landing page icons which
were always\r\ndisplaying in white color. It only happens in Safari,
other browsers\r\nshow the text in the correct color.\r\n\r\nFix: Remove
misuse of `color` property in `EuiText`
component\r\n\r\nBefore:\r\n\r\n\r\n![before](6ae6f235-4572-4ee7-9103-377869567a35)","sha":"befa48828c829211f0a7fe6bb7aef332de7e0b61"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165377","number":165377,"mergeCommit":{"message":"[Security
Solution][Bug] Fixes visual issue in Safari (#165377)\n\n##
Summary\r\n\r\nFixes issue in descriptions of landing page icons which
were always\r\ndisplaying in white color. It only happens in Safari,
other browsers\r\nshow the text in the correct color.\r\n\r\nFix: Remove
misuse of `color` property in `EuiText`
component\r\n\r\nBefore:\r\n\r\n\r\n![before](6ae6f235-4572-4ee7-9103-377869567a35)","sha":"befa48828c829211f0a7fe6bb7aef332de7e0b61"}}]}]
BACKPORT-->

Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
2023-09-01 04:24:24 -07:00
Sergi Massaneda
0d7f6c5430
[8.10][Security Solution][Bug] Fix a11y bug in Safari (#165210)
## Summary

Fixes a bug showing the Dashboard card description texts in white color,
making it impossible to read.
The bug is caused by misuse of the `color="text"` prop of `EuiText`.

This has no effect on other browsers, Safari however displays white
text.
This is an 8.10-only fix, in 8.11 we don't use `EuiText` anymore.


![Before](0e1e8acb-3632-42f0-bd31-196e6e219989)


![After](c65176ad-be84-4214-b717-4e92d4c69421)
2023-08-30 06:07:52 -07:00
Kibana Machine
67d543d6ec
[8.10] [Security Solution] Fixes Preconfigured Connectors not working with Assistant (#164900) (#165046)
# Backport

This will backport the following commits from `main` to `8.10`:
- [[Security Solution] Fixes Preconfigured Connectors not working with
Assistant (#164900)](https://github.com/elastic/kibana/pull/164900)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Garrett
Spong","email":"spong@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-08-28T20:46:33Z","message":"[Security
Solution] Fixes Preconfigured Connectors not working with Assistant
(#164900)\n\n## Summary\r\n\r\nFixes Preconfigured Connectors not
working with the Assistant, and also\r\nensures default `model` from
connector will be used first if available\r\n(instead of defaulting to
`gpt-3.5-turbo`).\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"637f5919-7560-40b0-a8db-681096e77ac0\"\r\n/>\r\n</p>
\r\n\r\nNote how `Model` is not displayed even though this is an
OpenAI\r\nconnector:\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"2c4bbe91-2851-48d7-8bfe-20e07db52155\"\r\n/>\r\n</p>
\r\n\r\nAdditionally, resolves issue with Detection Rule Assistant CTA
not\r\ndisplaying correctly on some platforms/browsers. It now shows as
a\r\n`Chat` button to the right of the table tabs, matching the
other\r\nassistant CTA's throughout the application.\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"9fcecd54-8e1a-423a-be05-7137632acbc4\"\r\n/>\r\n</p>
\r\n\r\nAnd lastly removes `Beta` title from callout since we're going
GA in\r\n`8.10` 🎉\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"5beb379a-1bc7-4afc-b4bc-09f1d6085211\"\r\n/>\r\n</p>
\r\n\r\nResolves:\r\nhttps://github.com/elastic/kibana/issues/163394#issuecomment-1693431066\r\nResolves:
https://github.com/elastic/kibana/issues/164819\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [X] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or
tutorials","sha":"5f9651e0ef99e35e9a4a3b5dfbd7e40160038f07","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:
SecuritySolution","Feature:Elastic AI
Assistant","v8.10.0","v8.11.0"],"number":164900,"url":"https://github.com/elastic/kibana/pull/164900","mergeCommit":{"message":"[Security
Solution] Fixes Preconfigured Connectors not working with Assistant
(#164900)\n\n## Summary\r\n\r\nFixes Preconfigured Connectors not
working with the Assistant, and also\r\nensures default `model` from
connector will be used first if available\r\n(instead of defaulting to
`gpt-3.5-turbo`).\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"637f5919-7560-40b0-a8db-681096e77ac0\"\r\n/>\r\n</p>
\r\n\r\nNote how `Model` is not displayed even though this is an
OpenAI\r\nconnector:\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"2c4bbe91-2851-48d7-8bfe-20e07db52155\"\r\n/>\r\n</p>
\r\n\r\nAdditionally, resolves issue with Detection Rule Assistant CTA
not\r\ndisplaying correctly on some platforms/browsers. It now shows as
a\r\n`Chat` button to the right of the table tabs, matching the
other\r\nassistant CTA's throughout the application.\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"9fcecd54-8e1a-423a-be05-7137632acbc4\"\r\n/>\r\n</p>
\r\n\r\nAnd lastly removes `Beta` title from callout since we're going
GA in\r\n`8.10` 🎉\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"5beb379a-1bc7-4afc-b4bc-09f1d6085211\"\r\n/>\r\n</p>
\r\n\r\nResolves:\r\nhttps://github.com/elastic/kibana/issues/163394#issuecomment-1693431066\r\nResolves:
https://github.com/elastic/kibana/issues/164819\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [X] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or
tutorials","sha":"5f9651e0ef99e35e9a4a3b5dfbd7e40160038f07"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164900","number":164900,"mergeCommit":{"message":"[Security
Solution] Fixes Preconfigured Connectors not working with Assistant
(#164900)\n\n## Summary\r\n\r\nFixes Preconfigured Connectors not
working with the Assistant, and also\r\nensures default `model` from
connector will be used first if available\r\n(instead of defaulting to
`gpt-3.5-turbo`).\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"637f5919-7560-40b0-a8db-681096e77ac0\"\r\n/>\r\n</p>
\r\n\r\nNote how `Model` is not displayed even though this is an
OpenAI\r\nconnector:\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"2c4bbe91-2851-48d7-8bfe-20e07db52155\"\r\n/>\r\n</p>
\r\n\r\nAdditionally, resolves issue with Detection Rule Assistant CTA
not\r\ndisplaying correctly on some platforms/browsers. It now shows as
a\r\n`Chat` button to the right of the table tabs, matching the
other\r\nassistant CTA's throughout the application.\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"9fcecd54-8e1a-423a-be05-7137632acbc4\"\r\n/>\r\n</p>
\r\n\r\nAnd lastly removes `Beta` title from callout since we're going
GA in\r\n`8.10` 🎉\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"5beb379a-1bc7-4afc-b4bc-09f1d6085211\"\r\n/>\r\n</p>
\r\n\r\nResolves:\r\nhttps://github.com/elastic/kibana/issues/163394#issuecomment-1693431066\r\nResolves:
https://github.com/elastic/kibana/issues/164819\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [X] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or
tutorials","sha":"5f9651e0ef99e35e9a4a3b5dfbd7e40160038f07"}}]}]
BACKPORT-->

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
2023-08-28 14:57:20 -07:00
Kibana Machine
c47cdbf1ed
[8.10] chore(slo): general enhancement (#164723) (#165032)
# Backport

This will backport the following commits from `main` to `8.10`:
- [chore(slo): general enhancement
(#164723)](https://github.com/elastic/kibana/pull/164723)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"kevin.delemme@elastic.co"},"sourceCommit":{"committedDate":"2023-08-28T18:50:38Z","message":"chore(slo):
general enhancement
(#164723)","sha":"733869e9e5774c4813126c80e8c00532ba8659ed","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","Team:
Actionable
Observability","v8.10.0","v8.11.0"],"number":164723,"url":"https://github.com/elastic/kibana/pull/164723","mergeCommit":{"message":"chore(slo):
general enhancement
(#164723)","sha":"733869e9e5774c4813126c80e8c00532ba8659ed"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164723","number":164723,"mergeCommit":{"message":"chore(slo):
general enhancement
(#164723)","sha":"733869e9e5774c4813126c80e8c00532ba8659ed"}}]}]
BACKPORT-->

Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
2023-08-28 13:05:26 -07:00
Kibana Machine
eb217d5997
[8.10] [Security Solution] Adds new Elastic AI Assistant logo and global header menu item (#164763) (#164909)
# Backport

This will backport the following commits from `main` to `8.10`:
- [[Security Solution] Adds new Elastic AI Assistant logo and global
header menu item
(#164763)](https://github.com/elastic/kibana/pull/164763)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Garrett
Spong","email":"spong@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-08-26T00:45:43Z","message":"[Security
Solution] Adds new Elastic AI Assistant logo and global header menu item
(#164763)\n\n## Summary\r\n\r\nAdds new Elastic AI Assistant logo and
global header menu item to all\r\nSecurity Solution
pages.\r\n\r\nResolves
https://github.com/elastic/security-team/issues/7407\r\n\r\nNew logo
within the assistant itself (header and assistant avatar):\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"2a94c2ca-37d6-49f0-af59-2b15fd37d81e\"\r\n/>\r\n</p>
\r\n\r\nNew global header menu for both on-prem and serverless
security\r\n`complete` deployments:\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"67b030fe-fb36-4a68-9331-d636e15a68f4\"\r\n/>\r\n</p>
\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"74751e3a-a88a-4b39-bec0-73497dcd98b1\"\r\n/>\r\n</p>
\r\n\r\n\r\nNote: If Security Assistant RBAC privileges are `NONE`
(which includes\r\nserverless deployments that are NOT security
`complete`), the global\r\nheader button will be hidden. We can revisit
the upsell messaging\r\nopportunity here for serverless
deployments.\r\n\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that
are not applicable to this PR.\r\n\r\n- [X] Any text added follows
[EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n*
@elastic/security-docs, will need to update images and make note
of\r\nnew global header item, will create
issue...\r\nhttps://github.com/elastic/security-docs/issues/3804\r\n-
[X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"5cac49a319371a2341618050e94c03d3591c121c","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","needs_docs","Team:
SecuritySolution","Feature:Elastic AI
Assistant","v8.10.0","v8.11.0"],"number":164763,"url":"https://github.com/elastic/kibana/pull/164763","mergeCommit":{"message":"[Security
Solution] Adds new Elastic AI Assistant logo and global header menu item
(#164763)\n\n## Summary\r\n\r\nAdds new Elastic AI Assistant logo and
global header menu item to all\r\nSecurity Solution
pages.\r\n\r\nResolves
https://github.com/elastic/security-team/issues/7407\r\n\r\nNew logo
within the assistant itself (header and assistant avatar):\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"2a94c2ca-37d6-49f0-af59-2b15fd37d81e\"\r\n/>\r\n</p>
\r\n\r\nNew global header menu for both on-prem and serverless
security\r\n`complete` deployments:\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"67b030fe-fb36-4a68-9331-d636e15a68f4\"\r\n/>\r\n</p>
\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"74751e3a-a88a-4b39-bec0-73497dcd98b1\"\r\n/>\r\n</p>
\r\n\r\n\r\nNote: If Security Assistant RBAC privileges are `NONE`
(which includes\r\nserverless deployments that are NOT security
`complete`), the global\r\nheader button will be hidden. We can revisit
the upsell messaging\r\nopportunity here for serverless
deployments.\r\n\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that
are not applicable to this PR.\r\n\r\n- [X] Any text added follows
[EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n*
@elastic/security-docs, will need to update images and make note
of\r\nnew global header item, will create
issue...\r\nhttps://github.com/elastic/security-docs/issues/3804\r\n-
[X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"5cac49a319371a2341618050e94c03d3591c121c"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164763","number":164763,"mergeCommit":{"message":"[Security
Solution] Adds new Elastic AI Assistant logo and global header menu item
(#164763)\n\n## Summary\r\n\r\nAdds new Elastic AI Assistant logo and
global header menu item to all\r\nSecurity Solution
pages.\r\n\r\nResolves
https://github.com/elastic/security-team/issues/7407\r\n\r\nNew logo
within the assistant itself (header and assistant avatar):\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"2a94c2ca-37d6-49f0-af59-2b15fd37d81e\"\r\n/>\r\n</p>
\r\n\r\nNew global header menu for both on-prem and serverless
security\r\n`complete` deployments:\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"67b030fe-fb36-4a68-9331-d636e15a68f4\"\r\n/>\r\n</p>
\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"74751e3a-a88a-4b39-bec0-73497dcd98b1\"\r\n/>\r\n</p>
\r\n\r\n\r\nNote: If Security Assistant RBAC privileges are `NONE`
(which includes\r\nserverless deployments that are NOT security
`complete`), the global\r\nheader button will be hidden. We can revisit
the upsell messaging\r\nopportunity here for serverless
deployments.\r\n\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that
are not applicable to this PR.\r\n\r\n- [X] Any text added follows
[EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n*
@elastic/security-docs, will need to update images and make note
of\r\nnew global header item, will create
issue...\r\nhttps://github.com/elastic/security-docs/issues/3804\r\n-
[X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"5cac49a319371a2341618050e94c03d3591c121c"}}]}]
BACKPORT-->

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
2023-08-28 09:27:14 -07:00
Kibana Machine
0e988a60f2
[8.10] chore(slo): optional filter fields (#164630) (#164699)
# Backport

This will backport the following commits from `main` to `8.10`:
- [chore(slo): optional filter fields
(#164630)](https://github.com/elastic/kibana/pull/164630)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"kevin.delemme@elastic.co"},"sourceCommit":{"committedDate":"2023-08-24T12:09:31Z","message":"chore(slo):
optional filter fields
(#164630)","sha":"65573fc93e95d4f64e323b8c1f7bd0cb417414b6","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","Team:
Actionable
Observability","v8.10.0","v8.11.0"],"number":164630,"url":"https://github.com/elastic/kibana/pull/164630","mergeCommit":{"message":"chore(slo):
optional filter fields
(#164630)","sha":"65573fc93e95d4f64e323b8c1f7bd0cb417414b6"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164630","number":164630,"mergeCommit":{"message":"chore(slo):
optional filter fields
(#164630)","sha":"65573fc93e95d4f64e323b8c1f7bd0cb417414b6"}}]}]
BACKPORT-->

Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
2023-08-24 06:34:24 -07:00
Kibana Machine
d27124a99c
[8.10] feat(slo): refactor fetch slo definitions hook (#164466) (#164697)
# Backport

This will backport the following commits from `main` to `8.10`:
- [feat(slo): refactor fetch slo definitions hook
(#164466)](https://github.com/elastic/kibana/pull/164466)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"kevin.delemme@elastic.co"},"sourceCommit":{"committedDate":"2023-08-24T12:07:02Z","message":"feat(slo):
refactor fetch slo definitions hook
(#164466)","sha":"b270602601229c5afafa997db99cc4e59ff97a13","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","Team:
Actionable
Observability","v8.10.0","v8.11.0"],"number":164466,"url":"https://github.com/elastic/kibana/pull/164466","mergeCommit":{"message":"feat(slo):
refactor fetch slo definitions hook
(#164466)","sha":"b270602601229c5afafa997db99cc4e59ff97a13"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164466","number":164466,"mergeCommit":{"message":"feat(slo):
refactor fetch slo definitions hook
(#164466)","sha":"b270602601229c5afafa997db99cc4e59ff97a13"}}]}]
BACKPORT-->

Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
2023-08-24 06:33:27 -07:00
Kibana Machine
c94b0f883b
[8.10] [Security Solution] Fixes Assistant Connector and Actions RBAC Flow (#164382) (#164645)
# Backport

This will backport the following commits from `main` to `8.10`:
- [[Security Solution] Fixes Assistant Connector and Actions RBAC Flow
(#164382)](https://github.com/elastic/kibana/pull/164382)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Garrett
Spong","email":"spong@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-08-23T21:22:39Z","message":"[Security
Solution] Fixes Assistant Connector and Actions RBAC Flow
(#164382)\n\n## Summary\r\n\r\nResolves
https://github.com/elastic/kibana/issues/159374 by ensuring\r\nthat if a
user doesn't have the appropriate `Connectors & Actions`\r\nprivileges,
they will be shown the appropriate messaging and any UI\r\ncontrols for
adding Connectors will be disabled or unavailable.\r\n\r\n####
Connectors and Actions `NONE` or Connectors and Actions `READ`
if\r\n*NO* existing connectors exist:\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"d9535ae9-a31e-499b-9b18-6004e3db64de\"\r\n/>\r\n</p>
\r\n\r\n#### Connectors and Actions `READ` if existing connector count >
0:\r\n\r\n`Add Connector...` option isn't available:\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"bd6a06a7-ffa2-4cfc-a2b7-844da99cb171\"\r\n/>\r\n</p>
\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"4681086e-1015-45b9-9afb-ff604c52cd38\"\r\n/>\r\n</p>
\r\n\r\n\r\n\r\nAlso addresses:\r\n\r\n* Fixes disabled state of header
connector selector for setup flows.\r\n* Adds `AssistantAvailability`
interface to `AssistantContext` for\r\nexposing ui feature controls like
`Connectors & Actions` privileges.\r\n* Hides `Add new connector...`
option if user doesn't have `ALL`\r\n`Connectors & Actions`
privileges.\r\n* Hoists dependencies from `assistant/index.tsx` to
`connector_setup` as\r\nit was already fetching dependencies from
`useAssistantContext`.\r\n\r\nNote: `ConnectorButton` and
`ConnectorMissingCallout` should probably be\r\ncombined into a single
component and show appropriate messaging given\r\nthe user's `Connectors
& Actions` privileges. I kept them separate for\r\nnow as to not modify
the control flow around the two components (till we\r\ncan further
refactor `assistant/index.tsx`), which means the missing\r\nconnector
callout is sort of doing double duty at the moment.\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [X] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"db7ac1bb417a4c84d29e1d7e9e831bdaf650358c","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:
SecuritySolution","Feature:Elastic AI
Assistant","v8.10.0","v8.11.0"],"number":164382,"url":"https://github.com/elastic/kibana/pull/164382","mergeCommit":{"message":"[Security
Solution] Fixes Assistant Connector and Actions RBAC Flow
(#164382)\n\n## Summary\r\n\r\nResolves
https://github.com/elastic/kibana/issues/159374 by ensuring\r\nthat if a
user doesn't have the appropriate `Connectors & Actions`\r\nprivileges,
they will be shown the appropriate messaging and any UI\r\ncontrols for
adding Connectors will be disabled or unavailable.\r\n\r\n####
Connectors and Actions `NONE` or Connectors and Actions `READ`
if\r\n*NO* existing connectors exist:\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"d9535ae9-a31e-499b-9b18-6004e3db64de\"\r\n/>\r\n</p>
\r\n\r\n#### Connectors and Actions `READ` if existing connector count >
0:\r\n\r\n`Add Connector...` option isn't available:\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"bd6a06a7-ffa2-4cfc-a2b7-844da99cb171\"\r\n/>\r\n</p>
\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"4681086e-1015-45b9-9afb-ff604c52cd38\"\r\n/>\r\n</p>
\r\n\r\n\r\n\r\nAlso addresses:\r\n\r\n* Fixes disabled state of header
connector selector for setup flows.\r\n* Adds `AssistantAvailability`
interface to `AssistantContext` for\r\nexposing ui feature controls like
`Connectors & Actions` privileges.\r\n* Hides `Add new connector...`
option if user doesn't have `ALL`\r\n`Connectors & Actions`
privileges.\r\n* Hoists dependencies from `assistant/index.tsx` to
`connector_setup` as\r\nit was already fetching dependencies from
`useAssistantContext`.\r\n\r\nNote: `ConnectorButton` and
`ConnectorMissingCallout` should probably be\r\ncombined into a single
component and show appropriate messaging given\r\nthe user's `Connectors
& Actions` privileges. I kept them separate for\r\nnow as to not modify
the control flow around the two components (till we\r\ncan further
refactor `assistant/index.tsx`), which means the missing\r\nconnector
callout is sort of doing double duty at the moment.\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [X] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"db7ac1bb417a4c84d29e1d7e9e831bdaf650358c"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164382","number":164382,"mergeCommit":{"message":"[Security
Solution] Fixes Assistant Connector and Actions RBAC Flow
(#164382)\n\n## Summary\r\n\r\nResolves
https://github.com/elastic/kibana/issues/159374 by ensuring\r\nthat if a
user doesn't have the appropriate `Connectors & Actions`\r\nprivileges,
they will be shown the appropriate messaging and any UI\r\ncontrols for
adding Connectors will be disabled or unavailable.\r\n\r\n####
Connectors and Actions `NONE` or Connectors and Actions `READ`
if\r\n*NO* existing connectors exist:\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"d9535ae9-a31e-499b-9b18-6004e3db64de\"\r\n/>\r\n</p>
\r\n\r\n#### Connectors and Actions `READ` if existing connector count >
0:\r\n\r\n`Add Connector...` option isn't available:\r\n\r\n<p
align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"bd6a06a7-ffa2-4cfc-a2b7-844da99cb171\"\r\n/>\r\n</p>
\r\n\r\n<p align=\"center\">\r\n<img
width=\"500\"\r\nsrc=\"4681086e-1015-45b9-9afb-ff604c52cd38\"\r\n/>\r\n</p>
\r\n\r\n\r\n\r\nAlso addresses:\r\n\r\n* Fixes disabled state of header
connector selector for setup flows.\r\n* Adds `AssistantAvailability`
interface to `AssistantContext` for\r\nexposing ui feature controls like
`Connectors & Actions` privileges.\r\n* Hides `Add new connector...`
option if user doesn't have `ALL`\r\n`Connectors & Actions`
privileges.\r\n* Hoists dependencies from `assistant/index.tsx` to
`connector_setup` as\r\nit was already fetching dependencies from
`useAssistantContext`.\r\n\r\nNote: `ConnectorButton` and
`ConnectorMissingCallout` should probably be\r\ncombined into a single
component and show appropriate messaging given\r\nthe user's `Connectors
& Actions` privileges. I kept them separate for\r\nnow as to not modify
the control flow around the two components (till we\r\ncan further
refactor `assistant/index.tsx`), which means the missing\r\nconnector
callout is sort of doing double duty at the moment.\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [X] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[X] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"db7ac1bb417a4c84d29e1d7e9e831bdaf650358c"}}]}]
BACKPORT-->

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
2023-08-23 16:13:37 -07:00
Kibana Machine
109b4b6926
[8.10] [ML] Fixes dark mode in flyouts and modals (#164399) (#164559)
# Backport

This will backport the following commits from `main` to `8.10`:
- [[ML] Fixes dark mode in flyouts and modals
(#164399)](https://github.com/elastic/kibana/pull/164399)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"jgowdy@elastic.co"},"sourceCommit":{"committedDate":"2023-08-23T10:47:18Z","message":"[ML]
Fixes dark mode in flyouts and modals (#164399)\n\nA recent EUI change
has caused a problem with the theme when using the\r\ndeprecated
`toMountPoint` inside `overlays.openFlyout` to
create\r\nflyouts.\r\nThis causes the contents of the rendered flyout to
not know the current\r\ntheme, this is obvious when running in dark
mode.\r\n\r\nThe fix is to switch to the non-deprecated version of
`toMountPoint`.\r\n\r\nFlyouts:\r\nCreate anomaly detection job from
Lens flyout in Dashboard.\r\nAnomaly swim lane and anomaly chart job
embeddables job selection flyout\r\nin Dashboard.\r\nLog pattern
analysis flyout in Discover.\r\n\r\nModals:\r\nTrained models start
deployment modal.\r\nTrained models force stop deployment
modal.\r\nTrained models stop deployment modal when there are
multiple\r\ndeployments.\r\n\r\nMisc:\r\nPage not found banner.\r\nJobs
list header, which contains the settings button.\r\nDFA clone job
warning toast when the original data view no
longer\r\nexists.\r\nComponents in ml's date picker package\r\n\r\nFixes
https://github.com/elastic/kibana/issues/164379\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Dima Arnautov
<arnautov.dima@gmail.com>","sha":"af440aae4b55e3090dc6a7983105fd98e16402ab","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["non-issue",":ml","release_note:skip","Feature:ML/AIOps","v8.10.0","v8.11.0"],"number":164399,"url":"https://github.com/elastic/kibana/pull/164399","mergeCommit":{"message":"[ML]
Fixes dark mode in flyouts and modals (#164399)\n\nA recent EUI change
has caused a problem with the theme when using the\r\ndeprecated
`toMountPoint` inside `overlays.openFlyout` to
create\r\nflyouts.\r\nThis causes the contents of the rendered flyout to
not know the current\r\ntheme, this is obvious when running in dark
mode.\r\n\r\nThe fix is to switch to the non-deprecated version of
`toMountPoint`.\r\n\r\nFlyouts:\r\nCreate anomaly detection job from
Lens flyout in Dashboard.\r\nAnomaly swim lane and anomaly chart job
embeddables job selection flyout\r\nin Dashboard.\r\nLog pattern
analysis flyout in Discover.\r\n\r\nModals:\r\nTrained models start
deployment modal.\r\nTrained models force stop deployment
modal.\r\nTrained models stop deployment modal when there are
multiple\r\ndeployments.\r\n\r\nMisc:\r\nPage not found banner.\r\nJobs
list header, which contains the settings button.\r\nDFA clone job
warning toast when the original data view no
longer\r\nexists.\r\nComponents in ml's date picker package\r\n\r\nFixes
https://github.com/elastic/kibana/issues/164379\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Dima Arnautov
<arnautov.dima@gmail.com>","sha":"af440aae4b55e3090dc6a7983105fd98e16402ab"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164399","number":164399,"mergeCommit":{"message":"[ML]
Fixes dark mode in flyouts and modals (#164399)\n\nA recent EUI change
has caused a problem with the theme when using the\r\ndeprecated
`toMountPoint` inside `overlays.openFlyout` to
create\r\nflyouts.\r\nThis causes the contents of the rendered flyout to
not know the current\r\ntheme, this is obvious when running in dark
mode.\r\n\r\nThe fix is to switch to the non-deprecated version of
`toMountPoint`.\r\n\r\nFlyouts:\r\nCreate anomaly detection job from
Lens flyout in Dashboard.\r\nAnomaly swim lane and anomaly chart job
embeddables job selection flyout\r\nin Dashboard.\r\nLog pattern
analysis flyout in Discover.\r\n\r\nModals:\r\nTrained models start
deployment modal.\r\nTrained models force stop deployment
modal.\r\nTrained models stop deployment modal when there are
multiple\r\ndeployments.\r\n\r\nMisc:\r\nPage not found banner.\r\nJobs
list header, which contains the settings button.\r\nDFA clone job
warning toast when the original data view no
longer\r\nexists.\r\nComponents in ml's date picker package\r\n\r\nFixes
https://github.com/elastic/kibana/issues/164379\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Dima Arnautov
<arnautov.dima@gmail.com>","sha":"af440aae4b55e3090dc6a7983105fd98e16402ab"}}]}]
BACKPORT-->

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2023-08-23 05:00:27 -07:00
Kibana Machine
c45d10890c
[8.10] Add indexName to data quality telemetry (#163937) (#164351)
# Backport

This will backport the following commits from `main` to `8.10`:
- [Add indexName to data quality telemetry
(#163937)](https://github.com/elastic/kibana/pull/163937)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Angela
Chuang","email":"6295984+angorayc@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-08-21T18:54:00Z","message":"Add
indexName to data quality telemetry (#163937)\n\n##
Summary\r\n\r\n\r\n[Staging](50d4fbbd-2ce4-4fb7-be73-e33bb242a261\r\n\r\n\r\n```\r\n{\r\n
\"timestamp\": \"2023-08-15T13:39:27.513Z\",\r\n \"event_type\": \"Data
Quality Index Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"WxZsLLXbR9qeroNaFeY1wg\",\r\n \"indexName\":
\".internal.alerts-security.alerts-default-000001\",\r\n \"isCheckAll\":
true,\r\n \"numberOfDocuments\": 7834,\r\n
\"numberOfIncompatibleFields\": 0,\r\n \"numberOfIndices\": 1,\r\n
\"numberOfIndicesChecked\": 1,\r\n \"sizeInBytes\": 15097503,\r\n
\"timeConsumedMs\": 151,\r\n \"unallowedMappingFields\": [],\r\n
\"unallowedValueFields\": []\r\n }\r\n}\r\n\r\n\r\n{\r\n \"timestamp\":
\"2023-08-15T13:39:30.637Z\",\r\n \"event_type\": \"Data Quality Index
Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"unmanaged\",\r\n \"indexId\": \"AoyctcRqTKG8HvUVmpuzEA\",\r\n
\"indexName\": \"auditbeat-custom-index-1\",\r\n \"isCheckAll\":
true,\r\n \"numberOfDocuments\": 4,\r\n \"numberOfIncompatibleFields\":
3,\r\n \"numberOfIndices\": 1,\r\n \"numberOfIndicesChecked\": 1,\r\n
\"sizeInBytes\": 28417,\r\n \"timeConsumedMs\": 69,\r\n
\"unallowedMappingFields\": [\r\n \"host.name\",\r\n \"source.ip\"\r\n
],\r\n \"unallowedValueFields\": [\r\n \"event.category\"\r\n ]\r\n
}\r\n}\r\n\r\n\r\n{\r\n \"timestamp\": \"2023-08-15T13:39:33.806Z\",\r\n
\"event_type\": \"Data Quality Index Checked\",\r\n \"context\": {\r\n
\"isDev\": true,\r\n \"isDistributable\": false,\r\n \"version\":
\"8.10.0\",\r\n \"branch\": \"main\",\r\n \"buildNum\":
9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"56NqQP_eSNCnesjLPmoe1g\",\r\n \"indexName\":
\".ds-auditbeat-8.7.1-2023.08.14-000001\",\r\n \"isCheckAll\": true,\r\n
\"numberOfDocuments\": 13593,\r\n \"numberOfIncompatibleFields\": 0,\r\n
\"numberOfIndices\": 1,\r\n \"numberOfIndicesChecked\": 1,\r\n
\"sizeInBytes\": 10588378,\r\n \"timeConsumedMs\": 134,\r\n
\"unallowedMappingFields\": [],\r\n \"unallowedValueFields\": []\r\n
}\r\n}\r\n\r\n\r\n{\r\n \"timestamp\": \"2023-08-15T13:39:37.013Z\",\r\n
\"event_type\": \"Data Quality Index Checked\",\r\n \"context\": {\r\n
\"isDev\": true,\r\n \"isDistributable\": false,\r\n \"version\":
\"8.10.0\",\r\n \"branch\": \"main\",\r\n \"buildNum\":
9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"hjnJ8WyPR5uTLw3fBISMmA\",\r\n \"indexName\":
\".ds-packetbeat-8.8.0-2023.08.14-000001\",\r\n \"isCheckAll\":
true,\r\n \"numberOfDocuments\": 318749,\r\n
\"numberOfIncompatibleFields\": 0,\r\n \"numberOfIndices\": 1,\r\n
\"numberOfIndicesChecked\": 1,\r\n \"sizeInBytes\": 165604512,\r\n
\"timeConsumedMs\": 157,\r\n \"unallowedMappingFields\": [],\r\n
\"unallowedValueFields\": []\r\n }\r\n}\r\n\r\n\r\n{\r\n \"timestamp\":
\"2023-08-15T13:39:37.013Z\",\r\n \"event_type\": \"Data Quality Check
All Completed\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"isCheckAll\": true,\r\n
\"numberOfDocuments\": 340180,\r\n \"numberOfIncompatibleFields\":
3,\r\n \"numberOfIndices\": 4,\r\n \"numberOfIndicesChecked\": 4,\r\n
\"sizeInBytes\": 191318810,\r\n \"timeConsumedMs\": 9651\r\n
}\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n5c977f60-e78d-426e-a682-46f7b1de4138\r\n\r\n```\r\n{\r\n
\"timestamp\": \"2023-08-15T13:42:47.777Z\",\r\n \"event_type\": \"Data
Quality Index Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"cb8c7d1d-d84c-41a3-8e9b-cb3991817df0\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"WxZsLLXbR9qeroNaFeY1wg\",\r\n \"indexName\":
\".internal.alerts-security.alerts-default-000001\",\r\n \"isCheckAll\":
false,\r\n \"numberOfDocuments\": 7834,\r\n
\"numberOfIncompatibleFields\": 0,\r\n \"numberOfIndices\": 1,\r\n
\"numberOfIndicesChecked\": 1,\r\n \"sizeInBytes\": 15097503,\r\n
\"timeConsumedMs\": 121,\r\n \"unallowedMappingFields\": [],\r\n
\"unallowedValueFields\": []\r\n }\r\n}\r\n\r\n\r\n{\r\n \"timestamp\":
\"2023-08-15T13:43:00.076Z\",\r\n \"event_type\": \"Data Quality Index
Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"ca4e6e41-0025-47c6-ab46-e4a7b6911b4f\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"unmanaged\",\r\n \"indexId\": \"AoyctcRqTKG8HvUVmpuzEA\",\r\n
\"indexName\": \"auditbeat-custom-index-1\",\r\n \"isCheckAll\":
false,\r\n \"numberOfDocuments\": 4,\r\n \"numberOfIncompatibleFields\":
3,\r\n \"numberOfIndices\": 1,\r\n \"numberOfIndicesChecked\": 1,\r\n
\"sizeInBytes\": 28417,\r\n \"timeConsumedMs\": 91,\r\n
\"unallowedMappingFields\": [\r\n \"host.name\",\r\n \"source.ip\"\r\n
],\r\n \"unallowedValueFields\": [\r\n \"event.category\"\r\n ]\r\n
}\r\n}\r\n```","sha":"9c17de6bdb1bb3b750b590fa1a24f00c9e68cbae","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat
Hunting","Team: SecuritySolution","Team:Threat
Hunting:Investigations","v8.10.0","v8.11.0"],"number":163937,"url":"https://github.com/elastic/kibana/pull/163937","mergeCommit":{"message":"Add
indexName to data quality telemetry (#163937)\n\n##
Summary\r\n\r\n\r\n[Staging](50d4fbbd-2ce4-4fb7-be73-e33bb242a261\r\n\r\n\r\n```\r\n{\r\n
\"timestamp\": \"2023-08-15T13:39:27.513Z\",\r\n \"event_type\": \"Data
Quality Index Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"WxZsLLXbR9qeroNaFeY1wg\",\r\n \"indexName\":
\".internal.alerts-security.alerts-default-000001\",\r\n \"isCheckAll\":
true,\r\n \"numberOfDocuments\": 7834,\r\n
\"numberOfIncompatibleFields\": 0,\r\n \"numberOfIndices\": 1,\r\n
\"numberOfIndicesChecked\": 1,\r\n \"sizeInBytes\": 15097503,\r\n
\"timeConsumedMs\": 151,\r\n \"unallowedMappingFields\": [],\r\n
\"unallowedValueFields\": []\r\n }\r\n}\r\n\r\n\r\n{\r\n \"timestamp\":
\"2023-08-15T13:39:30.637Z\",\r\n \"event_type\": \"Data Quality Index
Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"unmanaged\",\r\n \"indexId\": \"AoyctcRqTKG8HvUVmpuzEA\",\r\n
\"indexName\": \"auditbeat-custom-index-1\",\r\n \"isCheckAll\":
true,\r\n \"numberOfDocuments\": 4,\r\n \"numberOfIncompatibleFields\":
3,\r\n \"numberOfIndices\": 1,\r\n \"numberOfIndicesChecked\": 1,\r\n
\"sizeInBytes\": 28417,\r\n \"timeConsumedMs\": 69,\r\n
\"unallowedMappingFields\": [\r\n \"host.name\",\r\n \"source.ip\"\r\n
],\r\n \"unallowedValueFields\": [\r\n \"event.category\"\r\n ]\r\n
}\r\n}\r\n\r\n\r\n{\r\n \"timestamp\": \"2023-08-15T13:39:33.806Z\",\r\n
\"event_type\": \"Data Quality Index Checked\",\r\n \"context\": {\r\n
\"isDev\": true,\r\n \"isDistributable\": false,\r\n \"version\":
\"8.10.0\",\r\n \"branch\": \"main\",\r\n \"buildNum\":
9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"56NqQP_eSNCnesjLPmoe1g\",\r\n \"indexName\":
\".ds-auditbeat-8.7.1-2023.08.14-000001\",\r\n \"isCheckAll\": true,\r\n
\"numberOfDocuments\": 13593,\r\n \"numberOfIncompatibleFields\": 0,\r\n
\"numberOfIndices\": 1,\r\n \"numberOfIndicesChecked\": 1,\r\n
\"sizeInBytes\": 10588378,\r\n \"timeConsumedMs\": 134,\r\n
\"unallowedMappingFields\": [],\r\n \"unallowedValueFields\": []\r\n
}\r\n}\r\n\r\n\r\n{\r\n \"timestamp\": \"2023-08-15T13:39:37.013Z\",\r\n
\"event_type\": \"Data Quality Index Checked\",\r\n \"context\": {\r\n
\"isDev\": true,\r\n \"isDistributable\": false,\r\n \"version\":
\"8.10.0\",\r\n \"branch\": \"main\",\r\n \"buildNum\":
9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"hjnJ8WyPR5uTLw3fBISMmA\",\r\n \"indexName\":
\".ds-packetbeat-8.8.0-2023.08.14-000001\",\r\n \"isCheckAll\":
true,\r\n \"numberOfDocuments\": 318749,\r\n
\"numberOfIncompatibleFields\": 0,\r\n \"numberOfIndices\": 1,\r\n
\"numberOfIndicesChecked\": 1,\r\n \"sizeInBytes\": 165604512,\r\n
\"timeConsumedMs\": 157,\r\n \"unallowedMappingFields\": [],\r\n
\"unallowedValueFields\": []\r\n }\r\n}\r\n\r\n\r\n{\r\n \"timestamp\":
\"2023-08-15T13:39:37.013Z\",\r\n \"event_type\": \"Data Quality Check
All Completed\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"isCheckAll\": true,\r\n
\"numberOfDocuments\": 340180,\r\n \"numberOfIncompatibleFields\":
3,\r\n \"numberOfIndices\": 4,\r\n \"numberOfIndicesChecked\": 4,\r\n
\"sizeInBytes\": 191318810,\r\n \"timeConsumedMs\": 9651\r\n
}\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n5c977f60-e78d-426e-a682-46f7b1de4138\r\n\r\n```\r\n{\r\n
\"timestamp\": \"2023-08-15T13:42:47.777Z\",\r\n \"event_type\": \"Data
Quality Index Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"cb8c7d1d-d84c-41a3-8e9b-cb3991817df0\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"WxZsLLXbR9qeroNaFeY1wg\",\r\n \"indexName\":
\".internal.alerts-security.alerts-default-000001\",\r\n \"isCheckAll\":
false,\r\n \"numberOfDocuments\": 7834,\r\n
\"numberOfIncompatibleFields\": 0,\r\n \"numberOfIndices\": 1,\r\n
\"numberOfIndicesChecked\": 1,\r\n \"sizeInBytes\": 15097503,\r\n
\"timeConsumedMs\": 121,\r\n \"unallowedMappingFields\": [],\r\n
\"unallowedValueFields\": []\r\n }\r\n}\r\n\r\n\r\n{\r\n \"timestamp\":
\"2023-08-15T13:43:00.076Z\",\r\n \"event_type\": \"Data Quality Index
Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"ca4e6e41-0025-47c6-ab46-e4a7b6911b4f\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"unmanaged\",\r\n \"indexId\": \"AoyctcRqTKG8HvUVmpuzEA\",\r\n
\"indexName\": \"auditbeat-custom-index-1\",\r\n \"isCheckAll\":
false,\r\n \"numberOfDocuments\": 4,\r\n \"numberOfIncompatibleFields\":
3,\r\n \"numberOfIndices\": 1,\r\n \"numberOfIndicesChecked\": 1,\r\n
\"sizeInBytes\": 28417,\r\n \"timeConsumedMs\": 91,\r\n
\"unallowedMappingFields\": [\r\n \"host.name\",\r\n \"source.ip\"\r\n
],\r\n \"unallowedValueFields\": [\r\n \"event.category\"\r\n ]\r\n
}\r\n}\r\n```","sha":"9c17de6bdb1bb3b750b590fa1a24f00c9e68cbae"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/163937","number":163937,"mergeCommit":{"message":"Add
indexName to data quality telemetry (#163937)\n\n##
Summary\r\n\r\n\r\n[Staging](50d4fbbd-2ce4-4fb7-be73-e33bb242a261\r\n\r\n\r\n```\r\n{\r\n
\"timestamp\": \"2023-08-15T13:39:27.513Z\",\r\n \"event_type\": \"Data
Quality Index Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"WxZsLLXbR9qeroNaFeY1wg\",\r\n \"indexName\":
\".internal.alerts-security.alerts-default-000001\",\r\n \"isCheckAll\":
true,\r\n \"numberOfDocuments\": 7834,\r\n
\"numberOfIncompatibleFields\": 0,\r\n \"numberOfIndices\": 1,\r\n
\"numberOfIndicesChecked\": 1,\r\n \"sizeInBytes\": 15097503,\r\n
\"timeConsumedMs\": 151,\r\n \"unallowedMappingFields\": [],\r\n
\"unallowedValueFields\": []\r\n }\r\n}\r\n\r\n\r\n{\r\n \"timestamp\":
\"2023-08-15T13:39:30.637Z\",\r\n \"event_type\": \"Data Quality Index
Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"unmanaged\",\r\n \"indexId\": \"AoyctcRqTKG8HvUVmpuzEA\",\r\n
\"indexName\": \"auditbeat-custom-index-1\",\r\n \"isCheckAll\":
true,\r\n \"numberOfDocuments\": 4,\r\n \"numberOfIncompatibleFields\":
3,\r\n \"numberOfIndices\": 1,\r\n \"numberOfIndicesChecked\": 1,\r\n
\"sizeInBytes\": 28417,\r\n \"timeConsumedMs\": 69,\r\n
\"unallowedMappingFields\": [\r\n \"host.name\",\r\n \"source.ip\"\r\n
],\r\n \"unallowedValueFields\": [\r\n \"event.category\"\r\n ]\r\n
}\r\n}\r\n\r\n\r\n{\r\n \"timestamp\": \"2023-08-15T13:39:33.806Z\",\r\n
\"event_type\": \"Data Quality Index Checked\",\r\n \"context\": {\r\n
\"isDev\": true,\r\n \"isDistributable\": false,\r\n \"version\":
\"8.10.0\",\r\n \"branch\": \"main\",\r\n \"buildNum\":
9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"56NqQP_eSNCnesjLPmoe1g\",\r\n \"indexName\":
\".ds-auditbeat-8.7.1-2023.08.14-000001\",\r\n \"isCheckAll\": true,\r\n
\"numberOfDocuments\": 13593,\r\n \"numberOfIncompatibleFields\": 0,\r\n
\"numberOfIndices\": 1,\r\n \"numberOfIndicesChecked\": 1,\r\n
\"sizeInBytes\": 10588378,\r\n \"timeConsumedMs\": 134,\r\n
\"unallowedMappingFields\": [],\r\n \"unallowedValueFields\": []\r\n
}\r\n}\r\n\r\n\r\n{\r\n \"timestamp\": \"2023-08-15T13:39:37.013Z\",\r\n
\"event_type\": \"Data Quality Index Checked\",\r\n \"context\": {\r\n
\"isDev\": true,\r\n \"isDistributable\": false,\r\n \"version\":
\"8.10.0\",\r\n \"branch\": \"main\",\r\n \"buildNum\":
9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"hjnJ8WyPR5uTLw3fBISMmA\",\r\n \"indexName\":
\".ds-packetbeat-8.8.0-2023.08.14-000001\",\r\n \"isCheckAll\":
true,\r\n \"numberOfDocuments\": 318749,\r\n
\"numberOfIncompatibleFields\": 0,\r\n \"numberOfIndices\": 1,\r\n
\"numberOfIndicesChecked\": 1,\r\n \"sizeInBytes\": 165604512,\r\n
\"timeConsumedMs\": 157,\r\n \"unallowedMappingFields\": [],\r\n
\"unallowedValueFields\": []\r\n }\r\n}\r\n\r\n\r\n{\r\n \"timestamp\":
\"2023-08-15T13:39:37.013Z\",\r\n \"event_type\": \"Data Quality Check
All Completed\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"5d0d6127-4b9b-47af-8bb1-96e90fcdbb31\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"isCheckAll\": true,\r\n
\"numberOfDocuments\": 340180,\r\n \"numberOfIncompatibleFields\":
3,\r\n \"numberOfIndices\": 4,\r\n \"numberOfIndicesChecked\": 4,\r\n
\"sizeInBytes\": 191318810,\r\n \"timeConsumedMs\": 9651\r\n
}\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n5c977f60-e78d-426e-a682-46f7b1de4138\r\n\r\n```\r\n{\r\n
\"timestamp\": \"2023-08-15T13:42:47.777Z\",\r\n \"event_type\": \"Data
Quality Index Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"cb8c7d1d-d84c-41a3-8e9b-cb3991817df0\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"hot\",\r\n \"indexId\": \"WxZsLLXbR9qeroNaFeY1wg\",\r\n \"indexName\":
\".internal.alerts-security.alerts-default-000001\",\r\n \"isCheckAll\":
false,\r\n \"numberOfDocuments\": 7834,\r\n
\"numberOfIncompatibleFields\": 0,\r\n \"numberOfIndices\": 1,\r\n
\"numberOfIndicesChecked\": 1,\r\n \"sizeInBytes\": 15097503,\r\n
\"timeConsumedMs\": 121,\r\n \"unallowedMappingFields\": [],\r\n
\"unallowedValueFields\": []\r\n }\r\n}\r\n\r\n\r\n{\r\n \"timestamp\":
\"2023-08-15T13:43:00.076Z\",\r\n \"event_type\": \"Data Quality Index
Checked\",\r\n \"context\": {\r\n \"isDev\": true,\r\n
\"isDistributable\": false,\r\n \"version\": \"8.10.0\",\r\n \"branch\":
\"main\",\r\n \"buildNum\": 9007199254740991,\r\n \"buildSha\":
\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n \"session_id\":
\"99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3\",\r\n \"user_agent\":
\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\",\r\n
\"preferred_language\": \"en-US\",\r\n \"preferred_languages\": [\r\n
\"en-US\",\r\n \"en\"\r\n ],\r\n \"viewport_width\": 2560,\r\n
\"viewport_height\": 934,\r\n \"cluster_name\": \"elasticsearch\",\r\n
\"cluster_uuid\": \"efIxsMivQne1nV2Y44MW5A\",\r\n \"cluster_version\":
\"8.10.0-SNAPSHOT\",\r\n \"pageName\":
\"application:securitySolutionUI:/data_quality\",\r\n \"applicationId\":
\"securitySolutionUI\",\r\n \"page\": \"/data_quality\",\r\n
\"entityId\": \"new\",\r\n \"page_title\": \"Elastic\",\r\n
\"page_url\":
\"/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))\",\r\n
\"license_id\": \"d8d531da-1994-4e24-a4cc-13d7ea30c339\",\r\n
\"license_status\": \"active\",\r\n \"license_type\": \"trial\",\r\n
\"labels\": {\r\n \"serverless\": \"security\"\r\n },\r\n \"userId\":
\"986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391\",\r\n
\"isElasticCloudUser\": false\r\n },\r\n \"properties\": {\r\n
\"batchId\": \"ca4e6e41-0025-47c6-ab46-e4a7b6911b4f\",\r\n
\"ecsVersion\": \"8.6.1\",\r\n \"errorCount\": 0,\r\n \"ilmPhase\":
\"unmanaged\",\r\n \"indexId\": \"AoyctcRqTKG8HvUVmpuzEA\",\r\n
\"indexName\": \"auditbeat-custom-index-1\",\r\n \"isCheckAll\":
false,\r\n \"numberOfDocuments\": 4,\r\n \"numberOfIncompatibleFields\":
3,\r\n \"numberOfIndices\": 1,\r\n \"numberOfIndicesChecked\": 1,\r\n
\"sizeInBytes\": 28417,\r\n \"timeConsumedMs\": 91,\r\n
\"unallowedMappingFields\": [\r\n \"host.name\",\r\n \"source.ip\"\r\n
],\r\n \"unallowedValueFields\": [\r\n \"event.category\"\r\n ]\r\n
}\r\n}\r\n```","sha":"9c17de6bdb1bb3b750b590fa1a24f00c9e68cbae"}}]}]
BACKPORT-->

Co-authored-by: Angela Chuang <6295984+angorayc@users.noreply.github.com>
2023-08-21 19:00:28 +00:00
Garrett Spong
847e0cbe72
[Security Solution] Adds Connector Selector to Assistant Title Header (#163666)
## Summary

Adds a new `ConnectorSelectorInline` component that is displayed below
the Assistant title header.

Default:
<p align="center">
<img width="500"
src="83e6a884-103f-43c4-9a30-a0281d9941a2"
/>
</p> 


Overflow: 
<p align="center">
<img width="500"
src="f0d8a04e-963d-4053-90f5-2417f1c8eaca"
/>
</p> 


Missing:
<p align="center">
<img width="500"
src="eff04e75-a5ab-468c-b801-1e056d527e6a"
/>
</p> 


Open:
<p align="center">
<img width="500"
src="b7b97244-91a5-41ec-a096-b296e0cde644"
/>
</p> 



### Checklist

Delete any items that are not applicable to this PR.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [X] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
2023-08-16 03:13:10 -07:00
Dima Arnautov
fb6ac2e445
[ML] AIOps: Add/edit change point charts embeddable from the Dashboard app (#163694) 2023-08-15 19:10:07 +02:00
Khristinin Nikita
cd65fbbacb
## Risk score from new Risk Engine showing in UI (#163237)
## Risk score from new Risk Engine showing in UI

What happened in this pr:

1. We create the latest transform and index on the `init` call when we
install resources for Risk Engine. The original plan was to just get
some API layer around our datastream with historical data. But it's not
possible in one all to achieve pagination/sorting/filtering of risk
scores, so we decided to create transforms.

Latest transform: `risk_score_latest_transform_${spaceId}`
Latest Index: `risk-score.risk-score-latest-${spaceId}`

2. To get the risk score to UI we use the existing search strategy from
the old risk score module, and just pass the new index to the search

3. UI are the same except for the single host/user risk score page, when
we change the explanation parts and instead of the old UI, we will show
alerts table with grouping etc.

<img width="1365" alt="Screenshot 2023-08-09 at 16 19 20"
src="0a850b2e-d3d5-4b06-948d-c129dbf754f0">


4. Temporarily pass experimentalFeutres to rule wrapper and bulk create
as we need to know, which index to use for alert enrichment on ingest
time. It will be removed after we decide to release a new Risk Engine

5. Limiting to have only 2 risk scores per kibana
<img width="972" alt="Screenshot 2023-08-10 at 16 00 42"
src="9cc3c545-2ace-42d9-a2f3-ff771c7e5abd">
Because of limited timeframe before FF, majority of UI tests will be
added after FF

## How to test

`xpack.securitySolution.enableExperimental: ['riskScoringRoutesEnabled']
`

- Go to Settings -> Entity 

Risk Score
- Enable risk score module
- Generate some alerts with host.name or user.name
- Call from Kibana console calculation API
```
POST kbn:/api/risk_scores/calculation
{
      "data_view_id": ".alerts-security.alerts-default",
      "identifier_type": "user",
      "range": { "start": "now-30d", "end": "now" }
  }
  POST kbn:/api/risk_scores/calculation
{
      "data_view_id": ".alerts-security.alerts-default",
      "identifier_type": "host",
      "range": { "start": "now-30d", "end": "now" }
  }
```
- Go to Security / Explore / Hosts / Hosts Risk and see risk scores
- - If host page not available because it's required integrations, easy
fix to create filebeat index
```
PUT filebeat-8.10
{
  "mappings": {
    "properties": {
      "@timestamp": {
        "type":"date"
      },
      "host": {
        "type": "object", 
         "properties": {
           "name": {
             "type": "keyword"
           }
         }
      }
    }
  }
}
```
- Click on any and go to the single host/user risk page and go to
Host/User risk tab
- Observe the alerts table for top risk core contributors

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
2023-08-15 16:25:22 +02:00
Sergi Massaneda
560c87179b
[Security Solution][Unified IA] New sections with landing page (#163102)
## Summary

closes: https://github.com/elastic/kibana/issues/157847

The new links and pages in Security Solution for Serverless:

- `Investigations`
   - `Timelines`
   - `Osquery`

- `Assets`
   - `Fleet` (and all its sub-links)
   - `Endpoints` (and all its sub-links)
   - `Cloud defend` (and all its sub-links)
   - Callout with button linking `Integrations` in Project Setting

-  `Project settings`
   - `Users & roles` (Cloud UI)   
   - `Billing & consumption` (Cloud UI)
- `Integrations` (link to integrations with _/browse/security_ path
parameter)
- `Entity risk score` (link currently under the
`riskScoringRoutesEnabled` experimental flag)
- `Management` accordion with a set of (stack) management categories and
pages links

Sections updated:

(ESS & Serverless) `Rules` links have been updated according to new
specs.
(ESS) The `Settings` page was renamed back to `Manage`.
(Serverless) The `Dev tools` link was moved to the bottom of the side
navigation.

#### Cypress tests for serverless:

They will be implemented in a follow-up PR when the infrastructure is
ready https://github.com/elastic/kibana/pull/162698

## Screenshots

### Serverless

Investigations:


![investigations](19b602ab-53bb-4280-b0c3-dc69255ea3ab)

![investigations_panel](8be036fc-6095-4234-8b07-1a7149c8a92b)

Assets:


![assets](963723d5-16da-45dd-955c-a7d7b61099e6)

![assets_panel](977c0716-7cc3-4369-acdf-0787e264a912)

Rules:


![rules](5bafbd08-508c-4b50-bd28-dc052371e76a)

![rules_panel](ea47f8d9-4b68-44f3-8a42-6f795d05b982)

Project Settings:


![project_settings](36dbb446-3354-4519-b59c-e8b5005fbb71)

![project_settings_panel](1315b54b-4423-41a2-b0ed-997ee77c1f6d)

## ESS

Side Navigation:

![ess_side_nav](a3687a47-3ccb-4ce8-aa53-9e962a6ef1cf)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tomasz Ciecierski <ciecierskitomek@gmail.com>
Co-authored-by: Tomasz Ciecierski <tomasz.ciecierski@elastic.co>
2023-08-15 09:31:57 +02:00
Steph Milovic
d829927dbe
[Security Solution] AI Assistant telemetry (#162653) 2023-08-14 18:26:40 -07:00
Trevor Pierce
83d9644b74
Upgrade EUI to v86.0.0 (#163088)
`85.1.0` ➡️ `86.0.0`

⚠️ The biggest change in this PR is migrating the `react-beautiful-dnd`
dependency to it's open-source forked successor, `@hello-pangea/dnd`.
This new fork has better typescript support and additionally supports
both React 17 and React 18.

## [`86.0.0`](https://github.com/elastic/eui/tree/v86.0.0)

- Added React 18 support (StrictMode not yet supported).
([#7012](https://github.com/elastic/eui/pull/7012))

**Deprecations**

- Deprecated `euiPaletteComplimentary`; Use `euiPaletteComplementary`
instead. ([#6992](https://github.com/elastic/eui/pull/6992))

**Breaking changes**

- Replaced the underlying drag-and-drop library from
`react-beautiful-dnd` to its fork `@hello-pangea/dnd`
([#7012](https://github.com/elastic/eui/pull/7012))
([#7012](https://github.com/elastic/eui/pull/7012))
- No code updates are needed if using only `<EuiDragDropContext>`,
`<EuiDroppable>` and `<EuiDraggable>` with no direct imports from
`react-beautiful-dnd`. In case you were importing things from
`react-beautiful-dnd` and using them together with EUI components, you
need to switch to `@hello-pangea/dnd` which has cross-compatible API.

---------

Co-authored-by: Tomasz Kajtoch <tomasz.kajtoch@elastic.co>
Co-authored-by: Tomasz Kajtoch <tomek@kajto.ch>
Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com>
Co-authored-by: Drew Tate <andrew.tate@elastic.co>
2023-08-14 15:45:09 -05:00
Angela Chuang
e0c3c525ed
[SecuritySolution] Telemetry for data quality dashboard (#162680)
## Summary

https://github.com/elastic/security-team/issues/6531






### Success Criteria [Telemetry]
- [x] Date and time of the check
- [x] Number of indices that were checked
- [x] Time it took for each quality check to complete
- [x] Number of failures, if any
- [x] Number of incompatible fields per index
- [x] Identifying the fields that are incompatible to spot recurring
mapping conflicts in customers' environments - an array of incompatible
fields
- [x] Identifying unallowed values to determine patterns of unallowed
values found in customers' environments - an array of incompatible
fields
- [x] Number of documents per cluster, index pattern, and index -
pattern not tracked, index is tracked by uuid
- [x] Storage information per cluster, index pattern, and index -
pattern not tracked, index is tracked by uuid


### Additional properties tracked:
1. batchId: events triggered by the same action share the same batchId
2. ecsVersion



[sample
data](b0662610-31ff-11ee-adde-d5df298171dd?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-7d%2Fd,to:now))&_a=(columns:!(event_type,properties.pattern,properties.sizeInBytes,properties.numberOfIndices,properties.numberOfDocuments,properties.numberOfIncompatibleFields,properties.timeConsumedMs),filters:!(),grid:(),hideChart:!f,index:c5dc7cd0-2950-4e51-b428-d0451b1b8d9d,interval:auto,query:(language:kuery,query:'event_type%20:%20%22Data%20Quality%20Checked%22%20'),sort:!(!(timestamp,desc))))


### Prerequisit:
```
telemetry.optIn: true
```

### Steps to verify:
Create an index with invalid fields from dev tools, go to data quality
dashboard, click `Check All` button.
You should find `Data Quality Index Checked` in your console verbose
when each index is checked.
When everything completed, you should find `Data Quality Check All
Completed`

```
PUT auditbeat-custom-index-1

PUT auditbeat-custom-index-1/_mapping
{
  "properties": {
    "@timestamp": {
      "type": "date"
    },
    "event.category": {
      "type": "keyword",
      "ignore_above": 1024
    }
  }
}

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"
  }
}

POST auditbeat-custom-index-1/_doc
{
  "@timestamp": "2023-02-06T09:43:35.456Z",
  "host": {
    "name": "baz"
  },
  "event": {
    "category": "theory"
  },
  "some.field": "for",
  "source": {
    "port": 5,
    "ip": "10.4.6.6"
  }
}

POST auditbeat-custom-index-1/_doc
{
  "@timestamp": "2023-02-06T09:44:36.700Z",
  "host": {
    "name": "@baz"
  },
  "event": {
    "category": "malware"
  },
  "some.field": "rent",
  "source": {
    "port": 309,
    "ip": "10.1.1.1"
  }
}
```



### event_type:

**Data Quality Index Checked**
```
{
      "sizeInBytes": 89517384,
      "numberOfIndices": 1,
      "numberOfIndicesChecked": 1,
      "ilmPhase": "hot",
      "ecsVersion": "8.6.1",
      "numberOfIncompatibleFields": 0,
      "batchId": "43c35a90-e700-45cf-b9e9-822686e16cff",
      "isCheckAll": false, // This is true when it's triggered by check all button clicked
      "unallowedValueFields": [field1, field2],
      "numberOfDocuments": 172327,
      "indexId": "m_liWv7CRGWOuY2Op3lHZw",
      "errorCount": 0,
      "unallowedMappingFields": [field3],
      "timeConsumedMs": 120
    }
```

**Data Quality Check All Completed:**
```
{
      "isCheckAll": true,
      "sizeInBytes": 94708547,
      "numberOfIndices": 4,
      "numberOfIndicesChecked": 4,
      "ecsVersion": "8.6.1",
      "numberOfDocuments": 178049,
      "numberOfIncompatibleFields": 3,
      "batchId": "bdbb47ba-ffbf-432c-8212-8c691145f0d3",
      "timeConsumedMs": 13786
    },
    "timestamp": "2023-08-08T14:39:37.380Z"
  }
```


### Checklist

Delete any items that are not applicable to this PR.


- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-14 12:21:08 +01:00
Walter Rafelsberger
da0fb1d987
[ML] AIOps: Auto-detect if spike or dip selected in log rate analysis. (#163100)
This updates log rate analysis to be able to auto-detect whether the
selected deviation is a spike or dip compared to the baseline time
range. To achieve this, we compare the median bucket size of the two
selections. If a dip gets detected, the analysis will then switch the
window parameters sent to the API endpoint to run the analysis.

An info callout points out the auto-selected analysis type and explains
to which time range the analysis results refer to. We need to do this to
make it clear that for dip analysis the significant terms and their doc
counts refer to the baseline time range and vice versa for spike
analysis.
2023-08-09 08:05:07 +02:00
Chris Cowan
d87d998a2e
[SLO] Add support to burn rate visualization for group by (#163125)
## Summary

This PR fixes #163121 by adding support for the `instanceId` the burn
rate endpoint. This also updates the burn rate visualization to send the
`instanceId` as an optional attribute to the post body JSON object.

```JSON
POST /internal/observability/slos/6bad8fe0-323b-11ee-ac4c-37263913b2b5/_burn_rates
{
    "windows": [
        {
            "name": "CRITICAL_LONG",
            "duration": "1h"
        },
        {
            "name": "CRITICAL_SHORT",
            "duration": "5m"
        },
        {
            "name": "HIGH_LONG",
            "duration": "6h"
        },
        {
            "name": "HIGH_SHORT",
            "duration": "30m"
        },
        {
            "name": "MEDIUM_LONG",
            "duration": "24h"
        },
        {
            "name": "MEDIUM_SHORT",
            "duration": "120m"
        },
        {
            "name": "LOW_LONG",
            "duration": "72h"
        },
        {
            "name": "LOW_SHORT",
            "duration": "360m"
        }
    ],
    "instanceId": "you-got.mail"
}
```
2023-08-04 12:39:01 -06:00
Kevin Delemme
498d6fdccc
feat(slo): Handle instanceId for historical summary (#163114) 2023-08-03 20:41:51 -04:00
Kevin Delemme
7d3fe32976
feat(slo): Introduce group by (#163008) 2023-08-03 14:15:50 -04:00
Walter Rafelsberger
0dabaca508
[ML] AIOps: Adds dip support for log rate analysis in observability alert details page. (#162476)
Adds support for analysing dips for log rate analysis on Observability's
alert details page.

- This removes the filter against
`Comparator.GT/Comparator.GT_OR_EQ` which hides log rate analysis for
log threshold alerts. Instead an `analysisType` is passed on to log rate
analysis: When analysing dips the baseline and deviation ranges will be
switched for both the analysis and the brush labels on the document
count chart.
- Updates all references to "spikes" only in UI text, e.g. the AI
Assistant prompt.
2023-08-01 18:37:13 +02:00
Pablo Machado
b95241f9ff
[Security Solutions] Add PLI authorisation for Threat Intelligence (#162562)
## Summary

Add PLI authorization checks for the Intelligence page.
*This PR restricts access to the features* and creates a simplified
Upselling page.
* Rename `threat_intelligence-indicators` page name to
`threat_intelligence` to simplify the code

### Not included
* Final Upselling/PLG design

### How to test it?
#### ESS `yarn start`
* Run ESS with a basic license
  * It should not change
* Run ESS with a platinum
  * It should not change
  
#### Serverless `yarn serverless-security`
* Run Serverless with security essentials (serverless.security.yml)
   * It should show the new Threat Intelligence Upsell
```
xpack.serverless.security.productTypes:
  [
    { product_line: 'security', product_tier: 'essentials' }
  ]
```
* Run Serverless with security complete
(kibana/config/serverless.security.yml)
  * It should show the Therat Intelligence page
```
xpack.serverless.security.productTypes:
  [
    { product_line: 'security', product_tier: 'complete' },
  ]
 
 ```


<img width="1785" alt="Screenshot 2023-07-26 at 15 59 52" src="e8fb1bb4-ec26-477d-80e0-aecd4c15e7a2">



### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2023-08-01 04:59:19 -07:00
Kevin Delemme
757c881b9a
feat(slo): introduce new search capabilities (#162665) 2023-07-31 20:13:38 -04:00
Quynh Nguyen (Quinn)
eebc0a4245
[ML] Add map view for models in Trained Models and expand support for models in Analytics map (#162443)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-31 11:01:09 -07:00
Walter Rafelsberger
96de1482e0
[ML] @kbn/ml-response-stream: Fix race condition related to throttling. (#162803)
Fixes a race condition in the case where a response stream finishes and
sets `isRunning` to `false`, but `useThrottle` didn't trigger it's last
update yet within the refresh rate. In the case of log rate analysis,
`isRunning` could be set to `false` too early and the UI wouldn't
consider later throttled updates (for example, setting `loaded=1` which
would result in inconsistent UI state).

The fix in this case is to return the unthrottled raw data instead of
the throttled one as soon as the stream finished.
2023-07-31 17:39:25 +02:00
Quynh Nguyen (Quinn)
0728003865
[ML] Add new Data comparison view (#161365)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-31 08:24:01 -07:00
James Gowdy
716ecb8a04
[ML] Log pattern analysis field validation (#162319)
Uses the recently created [category validation
package](https://github.com/elastic/kibana/pull/161261) to perform
validation on the field selected for pattern analysis.

If the field is considered unsuitable for categorization, a warning
callout is displayed which lists the reasons it is unsuitable.
If the field is suitable, no callout is displayed.

Other changes:
- Adds the selected field to the URL state, so it is remembered on page
refresh.
- If no field is in the URL, it will look for a field called `message`
in the data view and auto select it.
- renames the ML route `/jobs/categorization_field_examples` to
`/jobs/categorization_field_validation` as it is a more accurate name
and it's consistent with the newly added route in AIOPs.

**Log Pattern Analysis page in ML**


![image](c0dfda8b-bc34-48b7-9e71-8bae9e65bdf3)


**Log Pattern Analysis flyout in Discover**


![image](b4d251f3-bae6-424f-9891-bda57ba1673d)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-28 16:44:23 +01:00
Thomas Watson
d213ed274c
Upgrade ESLint React plugins (#162464) 2023-07-28 10:43:53 +02:00
Ievgen Sorokopud
5f913066a9
[Security Solution] Fix Accessibility Tests (#162143)
## Summary

This PR un-skips security solution a11y tests.

There were four main issues fixes:

1. All list items (`li`) must be contained within `ul` or `ol` parent
elements:
https://dequeuniversity.com/rules/axe/4.6/listitem?application=axeAPI
2. Lists must be marked up correctly, meaning they must not contain
content elements other than `li` elements:
https://dequeuniversity.com/rules/axe/4.6/list?application=axeAPI
3. Ensures elements marked `role="img"` elements have alternate text:
https://dequeuniversity.com/rules/axe/4.6/role-img-alt?application=axeAPI
4. Each `select` element must have a programmatically associated label
element:
https://dequeuniversity.com/rules/axe/4.6/select-name?application=axeAPI


Fixes next tests:
1. https://github.com/elastic/kibana/issues/95707
2. https://github.com/elastic/kibana/issues/101923
2023-07-27 20:41:16 +02:00
Walter Rafelsberger
0ab24e566c
[ML] AIOps: Use Kibana's http service instead of fetch, fix throttling. (#162335)
- Originally Kibana's `http` service did not support receiving streams,
that's why we used plain `fetch` for this. This has been fixed in
#158678, so this PR updates the streaming helpers to use Kibana's `http`
service from now on.
- The PR also breaks out the response stream code into its own package
and restructures it to separate client and server side code. This brings
down the `aiops` bundle size by `~300KB`! 🥳
- The approach to client side throttling/buffering was also revamped:
There was an issue doing the throttling inside the generator function,
it always waited for the timeout. The buffering is now removed from
`fetchStream`, instead `useThrottle` from `react-use` is used on the
reduced `data` in `useFetchStream`. Loading log rate analysis results
got a lot snappier with this update!
2023-07-27 08:57:10 +02:00
Sergi Massaneda
3d6dbd4ad7
[Security Solution] Unified IA Project Navigation (#161667)
## Summary

Implementation of serverless-specific pages within the Unified IA
Navigation.

#### Links implemented:

- `Machine Learning`
  - Landing page created on serverless only
  - All links in the landing page go to `/ml` app
  
- `Dev Tools` 
  - Links directly to `/dev_tools` app


![snapshot](bd53c796-02df-4c3a-88e4-0fa043b896cd)

#### Links not implemented:
```// TODO: in a follow-up PR```

- Project Settings
  - Change the _Settings_ name by _Project Settings_
  - Modify the landing page items according to the design

## Changes

### Plugin contract changes

The Machine Learning landing page is the first page that is only available on serverless and should not exist in ess (there are more of this kind in the pipeline), so this PR implements the foundations to enable the _security_solution_serverless_ plugin to implement its own page components, configure the link definition and create new routes to render them in the Security Solution application. 
These new APIs can be called from either `security_solution_serverless` or `security_solution_ess`, allowing those plugins to have their own offering-specific pages.

The new APIs exposed in the security_solution public contract are the following:

 - `extraAppLinks$`: Observable to add extra app_links into the application links configuration, so they are stored and included in the SecuritySolution plugin `deepLinks` registry, to make them accessible from anywhere in the application using the `chrome.navLinks` API.
 
 - `extraRoutes$`: Observable to add extra routes into the main Router, so it can render the new page components. These additional routes are appended after the "sub-plugin" (_alerts_, _timeline_, ...) routes, so it is not possible to override an existing route path.
 
### New `security-solution-navigation` package

Since now we need to use the same navigation components and hooks in different plugins, these functionalities have been extracted to the `@kbn/security-solution-navigation` package, which all Security plugins will depend on (generic, serverless, and ess).

The modules exposed by this package have been extracted from the main security_solution plugin and standardized. They include the Landing pages components (new [storybook](https://ci-artifacts.kibana.dev/storybooks/pr-161667/394abe76676c6a76b2982c1d3f5bb675739c3477/security_solution_packages/index.html?path=/story/landing-links-landing-links-icons-categories--landing-links-icons-categories) available), navigation hooks, and link utilities. Also, some types and constants have been moved to this package.

A new context provider has also been created, which needs to be in place in order to use this package. The `<NavigationProvider core={core}>` is required for the package functionalities to have access to the Kibana core navigation APIs: `navigateToUrl`, `navigateToApp`, and `getUrlForApp`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: YulNaumenko <jo.naumenko@gmail.com>
2023-07-25 14:02:10 -07:00
Steph Milovic
06fabab55b
Assistant refactor (#162079) 2023-07-25 10:31:04 -06:00
Faisal Kanout
6bae659a1d
[AO][SERVERLESS] Create serverless integration tests for the Threshold rule #161458 (#161569)
## Summary

It fixes #161458 by adding API integration tests for the Threshold rule,
with many scenarios (file per scenario), and each scenario has a
complete life-cycle

### The scenario life-cycle 
- Generating data using the `fake_host` dataset from the high-card
- Create a DataView based on the generated data
- Create the rule and wait to be active
- Get the fired alert and matches its value 
- Clean up

### The covered scenarios 
- Avg. percentage, fires alert
- Avg. percentage, fires alert with no data
- Custom equation on bytes filed, fires alert
- Doc count, fires alert
- Group by two fields, fires alert.

---------
2023-07-24 18:59:44 +02:00
Walter Rafelsberger
11cc1e1be6
[ML] AIOps: Rename Explain Log Rate Spikes to Log Rate Analysis. (#161764)
## Summary

Part of #161832.

This PR renames the Explain Log Rate Spikes feature to **Log Rate
Analysis**.

- [x] Renamed references in `docs/developer/*`
- [x] Updated docs screenshots
- [x] Redirect in docs
- [x] Redirect urls from `explain_log_rate_spikes` to `log_rate_analysis`
- [x] API versioning
- [x] Renamed navigation links
- [x] Renamed variable names
- [x] Renamed file names
- [x] Renamed i18n ids
- [x] Renamed breadcrumbs 
- [x] Removed hard coded `AIOPS_ENABLED` feature flag
2023-07-19 16:46:31 +02:00
James Gowdy
219426dc7a
[ML] Creating category validation package (#161261)
Moves the server and client side code which performs analysis on data to
see whether it is suitable for categorization.
This is currently only used by the categorization job wizard to display
this callout:

![image](08db5321-0c38-474d-9bfe-90b8a9ad984a)

However this analysis will be useful for the Log Pattern Analysis
feature and so moving the code to a package allows easier sharing
between ML and AIOPs plugins.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-19 12:34:29 +01:00
Garrett Spong
83a31bfcc0
[Security Solution] [Elastic AI Assistant] Fixes System Prompt not sending as part of the conversation (#161920)
## Summary

Resolves System Prompt not sending issues:
https://github.com/elastic/kibana/issues/161809

Also resolves:
- [X] Not being able to delete really long Conversation, System Prompt,
and Quick Prompt names
- [X] Fix user/all System Prompts being overridden on refresh
- [X] Conversation without default System Prompt not healed if it is
initial conversation when Assistant opens (Timeline)
- [X] New conversation created from Conversations Settings not getting a
connector by default
- [X] Current conversation not selected by default when settings gear is
clicked (and other assistant instances exist)
- [X] Sent to Timeline action sends anonymized values instead of actual
plaintext
- [X] Clicking Submit does not clear the text area
- [X] Remove System Prompt Tooltip
- [X] Fixes confusion when System or Quick Prompt is empty by adding a
placeholder value
- [X] Shows (empty prompt) in System Prompt selector when the Prompt
content is empty
- [X] Fixes connector error callout flashing on initial load
- [X] Shows `(empty prompt)` text within Prompt Editor when prompt
content is empty to prevent confusion

### Checklist

Delete any items that are not applicable to this PR.

- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2023-07-14 17:42:57 -06:00
Steph Milovic
11cf01ea43
[Security solution] AI Assistant Fix Up (#161784) 2023-07-13 10:53:48 -06:00
Garrett Spong
b323923e65
[Security Solution] [Elastic AI Assistant] Consolidates settings into a single modal (#160468)
## Summary

This PR fixes the disjointed settings across the assistant by combining
them all into a single settings modal. It also resolves the Connector
`Model` configuration not being available when using the `OpenAI`
variant of the GenAI Connector.

Additional issues resolved:
- [x] Clearing conversation doesn't restore default system prompt
- [X] Double repeated welcome prompt
- [X] Clicking skip button broken

Resolves: https://github.com/elastic/security-team/issues/7110
Resolves:
https://github.com/elastic/kibana/pull/161039#pullrequestreview-1517129764
Resolves:
https://github.com/elastic/kibana/pull/161027#pullrequestreview-1523018176

#### Conversations

<p align="center">
<img width="500"
src="80e271e8-d12a-4d00-b6eb-d63cda2d8017"
/>
</p> 

#### Quick Prompts

<p align="center">
<img width="500"
src="417c49c0-2029-49f1-a2f3-b9d0ae3690d3"
/>
</p> 

#### System Prompts

<p align="center">
<img width="500"
src="cc2bac93-bfba-49c1-b5b8-6a6efa1c0a92"
/>
</p> 

#### Anonymization

<p align="center">
<img width="500"
src="9a65683a-06cc-4cc7-9397-9db2633b20a3"
/>
</p> 









### Checklist

Delete any items that are not applicable to this PR.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2023-07-12 01:50:10 -06:00
Luke
ca3146f0ca
[Security Solution] Store last conversation in localstorage #6993 (#161373) 2023-07-11 18:02:11 -07:00
Chris Cowan
06f7cbf9b6
[SLO] Add indicator to support histogram fields (#161582)
## Summary


This PR add a new indicator to support histogram fields. This will allow
you to either use a `range` aggregation or `value_count` aggregation for
the good and total events; including support for filtering with KQL on
both event types. When using a `range` aggregation, both the `from` and
`to` thresholds are required for the range and events will be to total
number of events within that range.[ Keep in mind, with the `range`
aggregation, the range includes the `from` value and excludes the `to`
value.](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-range-aggregation.html)

This PR also includes support for using the histogram field for a
"Custom Metric" indicator, `sum` is calculated on the values and not the
counts. If you need it calculated on the counts then you have to use the
histogram indicator.

<img width="776" alt="image"
src="1d46b722-df13-417e-bf3b-b3c450933da2">

---------

Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
2023-07-11 16:44:08 -07:00
Steph Milovic
6673ffbf18
[Security solution] Elastic Assistant adds beta label (#161682) 2023-07-11 13:52:45 -07:00
Jatin Kathuria
091b5c133b
[Security Solution][Security Assistant] Investigate in timeline control should be visible only on eligible queries. (#161240)
## Summary

Handles elastic/security-team#6971

This PR mainly resolved below 3 issues:

### Rename to `Add To Timeline` control in conversation code blocks to
`Investigate in Timeline`
 
- `Add to Timeline` according to existing Security Solution actions
means, adding a condition to the timeline with an `OR` clause without
affecting the existing Timeline.

- But the `Add to Timeline` control in the Security Assistant, creates a
new timeline on each action by the user, which contradicts the above
workflow. Hence, it might confuse user.

- `Investigate in Timeline` already means that a new timeline will be
created.

### `Add To Timeline` control was visible on types of codeblock. For
example, it does not make sense for a `Query DSL` to have an `Add to
Timeline` control.

- This PR adds the list of eligible types of queries/code blocks on
which `Add To Timeline` action can be added.

- Currently, that list only contains `kql`, `dsl` and `eql`. Below is
the complete list of types of query that can occur in code blocks.

- Please feel free to suggest a change.
    ```
    'eql' | 'kql' | 'dsl' | 'json' | 'no-type';
    ```

### Lazy calculation of CodeBlockPortals and CodeBlock Action container

- To add controls to the conversation code blocks, we need to follow
below 2 steps.
    1. get the codeBlock containers on which the controls can be added.
2. create portals in the HTML container with our `Add to Timeline`
control.
  
- Below are issues these steps sometime created.
1. We get codeBlock container in the `useLayoutEffect` but at the time,
all conversations might not have loaded because of which containers are
returns as the undefined.
2. Then, we try to create portal in the `undefined` container, which
fails and hence, `Add to Timeline` controls are not visible.
 
- Solution:
1. Instead of getting the codeblock container in useLayoutEffect, we get
the function which will eventually return that container, whenever we
are creating the portal.
2. Converted codeBlock Portal to a callback such that callback can be
called during the rendering which makes sure that all needed
conversations are available and using above step we can easily get the
portal containers.
Feel free to let me know if there are any issues with above strategy. 

### Better Pattern matching.

- Currently, when we are trying to identify the type of codeblock it
might result in unexpected output because of below reason.
1. Let say, we are trying to identify KQL Query and for that we use
below phrases to match in the `OpenAI` response.
        `'Kibana Query Language', 'KQL Query'`
2. Because of this, if the `OpenAI` response contains the phrase `KQL
query` or `kql query`, that fails because of case senstivity when
searching the above phrases.
    3. This PR makes that part of pattern matching case insensitive


### Before



b472178a-0145-42d8-8fb9-ab107915086a



### After


b499f099-a7a1-435f-99b2-ab27ee1f5680



### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
2023-07-11 12:09:33 -06:00
Steph Milovic
ac0630015f
[Security solution] Create AI assistant availability model (#161027) 2023-07-10 17:37:29 -06:00
Pablo Machado
6db79db1e0
[Security Solutions] Update Events/alerts table to use FieldSpec for CellActions (#161361)
EPIC: https://github.com/elastic/kibana/issues/144943

## Summary

Update Events/alerts table to provide `CellActions` with a complete
`FieldSpec`object from DataView

### Affected pages:
* Alerts page
* Security Dashboards
* Rule preview
* Host events
* Users events

### How to test it
Use CellActions on one of the affected pages.




### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-10 16:57:04 +02:00
Christos Nasikas
67fc8333e7
[Actions] Set system actions on Kibana start (#160983)
## Summary

This PR:

- Adds the ability to create system action types
- Creates system connectors on Kibana `start` from the system action
types
- Prevents system action to be created/updated/deleted
- Return system actions from the get/getAll endpoints

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-07 10:39:29 -07:00
Jatin Kathuria
75bd6dd854
[Security Solution][Security Assistant] Fixes relationship between system prompts & conversations (#161039)
## Summary
This PR handles bugs 
- elastic/security-team#6977 
- https://github.com/elastic/security-team/issues/6978 
- elastic/security-team#6979.

Currently, below operations between System Prompts and Conversarions do
not work.

1. When a prompt is set as default for all conversation, it should be
automatically selected for any new conversation user creates.
2. When a new prompt is creates and set as default for all conversation,
it should be automatically selected for any new conversation user
creates.
3. When a prompt is edited such that, it is default for only certain
conversation, it should be automatically selected for that conversation.
4. When a prompt is edited such that conversations are removed to have
that default prompt, it should be automatically removed from
conversation default system prompt list.

In addition to above scenarios, this PR also handles one more bug.

Consider below interface of Conversation which has a property
`apiConfig.defaultSystemPrompt` is of type Prompt. It has been changed
from `defaultSystemPrompt?: Prompt` to `defaultSystemPrompt?: string`
where it will store `promptId` instead of complete prompt.

The current model was posing a problem where, if a prompt was updated,
all its copies in `Conversation` were needed to be updated leading to
inconsistencies. This is now resolved.

```typescript
export interface Conversation {
  apiConfig: {
    connectorId?: string;
    defaultSystemPrompt?: Prompt;
    provider?: OpenAiProviderType;
  };
  id: string;
  messages: Message[];
  replacements?: Record<string, string>;
  theme?: ConversationTheme;
  isDefault?: boolean;
}

```
2023-07-06 15:09:49 -07:00
Bree Hall
4cf630bfec
Upgrade EUI to 83.0.0 (#160813)
`eui@82.1.0`  `83.0.0`

⚠️ The biggest change in this PR by far is the `EuiButtonEmpty` Emotion
conversion, which changes the DOM structure of the button slightly as
well as several CSS classes around it.

EUI has attempted to convert any custom EuiButtonEmpty CSS overrides
where possible, but would super appreciate it if CODEOWNERS checked
their touched files. If anything other than a snapshot or test was
touched, please double check the display of your button(s) and confirm
everything still looks shipshape. Feel free to ping us for advice if
not.

---

## [`83.0.0`](https://github.com/elastic/eui/tree/v83.0.0)

**Bug fixes**

- Fixed `EuiPaginationButton` styling affected by `EuiButtonEmpty`'s
Emotion conversion ([#6893](https://github.com/elastic/eui/pull/6893))

**Breaking changes**

- Removed `isPlaceholder` prop from `EuiPaginationButton`
([#6893](https://github.com/elastic/eui/pull/6893))

## [`82.2.1`](https://github.com/elastic/eui/tree/v82.2.1)

- Updated supported Node engine versions to allow Node 16, 18 and >=20
([#6884](https://github.com/elastic/eui/pull/6884))

## [`82.2.0`](https://github.com/elastic/eui/tree/v82.2.0)

- Updated EUI's SVG icons library to use latest SVGO v3 optimization
([#6843](https://github.com/elastic/eui/pull/6843))
- Added success color `EuiNotificationBadge`
([#6864](https://github.com/elastic/eui/pull/6864))
- Added `badgeColor` prop to `EuiFilterButton`
([#6864](https://github.com/elastic/eui/pull/6864))
- Updated `EuiBadge` to use CSS-in-JS for named colors instead of inline
styles. Custom colors will still use inline styles.
([#6864](https://github.com/elastic/eui/pull/6864))

**CSS-in-JS conversions**

- Converted `EuiButtonGroup` and `EuiButtonGroupButton` to Emotion
([#6841](https://github.com/elastic/eui/pull/6841))
- Converted `EuiButtonIcon` to Emotion
([#6844](https://github.com/elastic/eui/pull/6844))
- Converted `EuiButtonEmpty` to Emotion
([#6863](https://github.com/elastic/eui/pull/6863))
- Converted `EuiCollapsibleNav` and `EuiCollapsibleNavGroup` to Emotion
([#6865](https://github.com/elastic/eui/pull/6865))
- Removed Sass variables `$euiCollapsibleNavGroupLightBackgroundColor`,
`$euiCollapsibleNavGroupDarkBackgroundColor`, and
`$euiCollapsibleNavGroupDarkHighContrastColor`
([#6865](https://github.com/elastic/eui/pull/6865))

---------

Co-authored-by: Cee Chen <constance.chen@elastic.co>
Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-06 12:46:55 -07:00
Chris Cowan
099835fad5
[SLO] Support filters for good/total custom metrics (#161308)
## Summary

This PR adds support for applying a KQL filter to the good/total
metrics.

<img width="858" alt="image"
src="c271352c-10fd-49f1-89b8-a352b69f7f7c">
2023-07-06 08:00:09 -06:00
Pablo Machado
360c4c30fd
[SecuritySolutions] Update CellActions to support all types used by Discover (#160524)
Original issue: https://github.com/elastic/kibana/issues/144943

## Summary

* Update CellActions value to be `Serializable`.
* Update Default Actions and SecuritySolution Actions to allowlist the
supported Kibana types.
* Add an extra check to Action's `execute` to ensure the field value is
compatible.

### How to test it?
* Open Discover and create a saved search with many different field
types
* Go to Security Solutions dashboards
* Create a new dashboard and import the saved search
* Test the created dashboard inside Security Solutions


### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-30 15:50:39 +02:00