forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stack Monitoring] Switch Logs Explorer locator for Discover locator …
…in Stack Monitoring (elastic#200546) ## Summary Closes elastic#200256 and elastic#200218. ## Overview of changes - The call to `logsShared.logViews.defineInternalLogView()` is removed as Log Views will be deprecated. - The logs indices that were previously defined via `defineInternalLogView()` are now exposed via `externalConfig.logsIndices` - As part of this change `ui.logs` from `config` is now exposed to browser. Given this is just an index pattern I don't believe there are any security concerns here. - `getIndexPatterns()` has been moved to common (this makes it look like there's a lot of file changes here). - The Logs Explorer locator is swapped for the Discover locator using an ad-hoc data view. - This is hidden if Discover isn't available. The behaviour here should match exactly what we had before, as the same indices are constructed from `getIndexPatterns()` and we apply the same `query`. Stack Monitoring reviewer: The path changes from moving `getIndexPatterns()` were automated so there shouldn't be any issues, but given it's used extensively please check everything works as expected. ## Screenshots ![Screenshot 2024-11-18 at 11 59 45](https://github.com/user-attachments/assets/59b61421-c6f9-4df0-87c5-c67ca732c89f) ![Screenshot 2024-11-18 at 12 00 15](https://github.com/user-attachments/assets/5a934883-1c35-4551-a045-705b28dfcbb7) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 3e538d6)
- Loading branch information
Showing
85 changed files
with
172 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 8 additions & 16 deletions
24
x-pack/plugins/monitoring/public/components/logs/__snapshots__/logs.test.js.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.