-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LogsUI] Add UI setting to hide Logs Stream and dashboard panel option #194519
[LogsUI] Add UI setting to hide Logs Stream and dashboard panel option #194519
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
…onyghiani/kibana into 193320-advance-setting-to-show-logs-ui
value: false, | ||
description: i18n.translate('xpack.infra.enableLogsStreamDescription', { | ||
defaultMessage: | ||
'Enables the legacy Logs Stream application. When enabled, the dashboard panel for legacy logs streams is also available. ', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdbirnstiehl Could you double-check this ui setting description, please?
...ns/observability_solution/infra/public/components/log_stream/log_stream_react_embeddable.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/infra/common/ui_settings.ts
Outdated
Show resolved
Hide resolved
…onyghiani/kibana into 193320-advance-setting-to-show-logs-ui
No prob @flash1293 , it was a fairly simple change, I reused the deprecation banner we implemented for the Stream page with a slightly different phrasing to redirect the user to use Logs Explorer. |
x-pack/plugins/observability_solution/infra/public/components/logs_deprecation_callout.tsx
Outdated
Show resolved
Hide resolved
…logs_deprecation_callout.tsx Co-authored-by: Mike Birnstiehl <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obs-ux-management LGTM (code review only)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Telemetry changes LGTM
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! Amazing work mate and thanks for refactoring some parts there 🚀
The only thing that was a bit confusing to me is that when the Logs Stream
is disabled I saw the new Settings
side nav entry with the new callout but nothing pointing me to how I can re-enable Stream
if I want to.
Also as a user of Stream if I now suddenly see Page not found
when I open stream
links with no hints on what happened not sure about this but maybe if we have a hint on how it could be re-enabled or so.
This was the approach we agreed on the comments above to still give the user a quick touch-point on the settings since the log view is still used for other features such as anomalies and categories.
This is a good point, we could add a redirect to Logs Explorer in case of a direct hit to the /stream URL, wdyt @flash1293 ? |
I added the redirect to Logs Explorer when directly accessing the Logs Stream route while disabled, that feels the most natural behaviour. |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
History |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11250921067 |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
elastic#194519) ## 📓 Summary Closes elastic#193319 Closes elastic#193320 This work is part of the effort to progressively deprecate the existing Logs Stream feature. Changes taken on this PR consist of: - Create a new uiSettings `observability:enableLogsStream` which defaults to `false` on the stateful/cloud deployments and is not available in serverless ones (still, defaults to `false` behind the scene). - When `observability:enableLogsStream` is `false`, the Logs Stream page route is not registered, and neither is its deep link for global search. - When `observability:enableLogsStream` is `false`, the panels list on Dashboard won't show anymore the option `Logs Stream (Deprecated)` to prevent usage of this embeddable in new dashboards. The embeddable is still registered for retro-compatibility with active dashboards, and it has now a callout explaining the status of this embeddable (unmaintained/deprecated). - Rename logs ML to "Logs Anomalies" and "Logs Categories". Other minor improvements regard: - Remove duplicate Xstate utils and use the relative package instead. - Remove the duplicated `useBoolean` hook used in the deprecation callout. - Sync deep links registration with available routes through a single `getLogsRoutes` util. ## 🎥 Recordings ### Logs Stream app removed https://github.com/user-attachments/assets/f4173294-8789-4abd-9972-29c9b7c197ed ### Logs Stream dashboard panel entry removed https://github.com/user-attachments/assets/7f99ca2a-c030-4867-b976-8fdc1df09d29 ### Logs Stream app removed from project nav https://github.com/user-attachments/assets/de51bdd6-820a-4c03-8b64-fb1a6ced0a12 ### Embeddable deprecation callout <img width="949" alt="Screenshot 2024-10-02 at 10 22 09" src="https://github.com/user-attachments/assets/99fd5554-004b-45e4-81db-cb23947e210e"> ### Unavailable setting in serverless https://github.com/user-attachments/assets/91bf6c37-0845-4918-a485-b6250bbd96bf --------- Co-authored-by: Marco Antonio Ghiani <[email protected]> Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Mike Birnstiehl <[email protected]> (cherry picked from commit 9907601) # Conflicts: # src/plugins/telemetry/schema/oss_plugins.json
… option (#194519) (#195542) # Backport This will backport the following commits from `main` to `8.x`: - [[LogsUI] Add UI setting to hide Logs Stream and dashboard panel option (#194519)](#194519) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Antonio Ghiani","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-09T08:14:06Z","message":"[LogsUI] Add UI setting to hide Logs Stream and dashboard panel option (#194519)\n\n## 📓 Summary\r\n\r\nCloses #193319 \r\nCloses #193320 \r\n\r\nThis work is part of the effort to progressively deprecate the existing\r\nLogs Stream feature.\r\n\r\nChanges taken on this PR consist of:\r\n- Create a new uiSettings `observability:enableLogsStream` which\r\ndefaults to `false` on the stateful/cloud deployments and is not\r\navailable in serverless ones (still, defaults to `false` behind the\r\nscene).\r\n- When `observability:enableLogsStream` is `false`, the Logs Stream page\r\nroute is not registered, and neither is its deep link for global search.\r\n- When `observability:enableLogsStream` is `false`, the panels list on\r\nDashboard won't show anymore the option `Logs Stream (Deprecated)` to\r\nprevent usage of this embeddable in new dashboards. The embeddable is\r\nstill registered for retro-compatibility with active dashboards, and it\r\nhas now a callout explaining the status of this embeddable\r\n(unmaintained/deprecated).\r\n- Rename logs ML to \"Logs Anomalies\" and \"Logs Categories\".\r\n\r\nOther minor improvements regard:\r\n- Remove duplicate Xstate utils and use the relative package instead.\r\n- Remove the duplicated `useBoolean` hook used in the deprecation\r\ncallout.\r\n- Sync deep links registration with available routes through a single\r\n`getLogsRoutes` util.\r\n\r\n## 🎥 Recordings\r\n\r\n### Logs Stream app removed\r\n\r\n\r\nhttps://github.com/user-attachments/assets/f4173294-8789-4abd-9972-29c9b7c197ed\r\n\r\n### Logs Stream dashboard panel entry removed\r\n\r\n\r\nhttps://github.com/user-attachments/assets/7f99ca2a-c030-4867-b976-8fdc1df09d29\r\n\r\n### Logs Stream app removed from project nav\r\n\r\n\r\nhttps://github.com/user-attachments/assets/de51bdd6-820a-4c03-8b64-fb1a6ced0a12\r\n\r\n### Embeddable deprecation callout\r\n\r\n<img width=\"949\" alt=\"Screenshot 2024-10-02 at 10 22 09\"\r\nsrc=\"https://github.com/user-attachments/assets/99fd5554-004b-45e4-81db-cb23947e210e\">\r\n\r\n### Unavailable setting in serverless\r\n\r\n\r\nhttps://github.com/user-attachments/assets/91bf6c37-0845-4918-a485-b6250bbd96bf\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Mike Birnstiehl <[email protected]>","sha":"9907601dd148ba59420bffda45ff584686f47b43","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:deprecation","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-logs","Team:obs-ux-management","apm:review"],"number":194519,"url":"https://github.com/elastic/kibana/pull/194519","mergeCommit":{"message":"[LogsUI] Add UI setting to hide Logs Stream and dashboard panel option (#194519)\n\n## 📓 Summary\r\n\r\nCloses #193319 \r\nCloses #193320 \r\n\r\nThis work is part of the effort to progressively deprecate the existing\r\nLogs Stream feature.\r\n\r\nChanges taken on this PR consist of:\r\n- Create a new uiSettings `observability:enableLogsStream` which\r\ndefaults to `false` on the stateful/cloud deployments and is not\r\navailable in serverless ones (still, defaults to `false` behind the\r\nscene).\r\n- When `observability:enableLogsStream` is `false`, the Logs Stream page\r\nroute is not registered, and neither is its deep link for global search.\r\n- When `observability:enableLogsStream` is `false`, the panels list on\r\nDashboard won't show anymore the option `Logs Stream (Deprecated)` to\r\nprevent usage of this embeddable in new dashboards. The embeddable is\r\nstill registered for retro-compatibility with active dashboards, and it\r\nhas now a callout explaining the status of this embeddable\r\n(unmaintained/deprecated).\r\n- Rename logs ML to \"Logs Anomalies\" and \"Logs Categories\".\r\n\r\nOther minor improvements regard:\r\n- Remove duplicate Xstate utils and use the relative package instead.\r\n- Remove the duplicated `useBoolean` hook used in the deprecation\r\ncallout.\r\n- Sync deep links registration with available routes through a single\r\n`getLogsRoutes` util.\r\n\r\n## 🎥 Recordings\r\n\r\n### Logs Stream app removed\r\n\r\n\r\nhttps://github.com/user-attachments/assets/f4173294-8789-4abd-9972-29c9b7c197ed\r\n\r\n### Logs Stream dashboard panel entry removed\r\n\r\n\r\nhttps://github.com/user-attachments/assets/7f99ca2a-c030-4867-b976-8fdc1df09d29\r\n\r\n### Logs Stream app removed from project nav\r\n\r\n\r\nhttps://github.com/user-attachments/assets/de51bdd6-820a-4c03-8b64-fb1a6ced0a12\r\n\r\n### Embeddable deprecation callout\r\n\r\n<img width=\"949\" alt=\"Screenshot 2024-10-02 at 10 22 09\"\r\nsrc=\"https://github.com/user-attachments/assets/99fd5554-004b-45e4-81db-cb23947e210e\">\r\n\r\n### Unavailable setting in serverless\r\n\r\n\r\nhttps://github.com/user-attachments/assets/91bf6c37-0845-4918-a485-b6250bbd96bf\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Mike Birnstiehl <[email protected]>","sha":"9907601dd148ba59420bffda45ff584686f47b43"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194519","number":194519,"mergeCommit":{"message":"[LogsUI] Add UI setting to hide Logs Stream and dashboard panel option (#194519)\n\n## 📓 Summary\r\n\r\nCloses #193319 \r\nCloses #193320 \r\n\r\nThis work is part of the effort to progressively deprecate the existing\r\nLogs Stream feature.\r\n\r\nChanges taken on this PR consist of:\r\n- Create a new uiSettings `observability:enableLogsStream` which\r\ndefaults to `false` on the stateful/cloud deployments and is not\r\navailable in serverless ones (still, defaults to `false` behind the\r\nscene).\r\n- When `observability:enableLogsStream` is `false`, the Logs Stream page\r\nroute is not registered, and neither is its deep link for global search.\r\n- When `observability:enableLogsStream` is `false`, the panels list on\r\nDashboard won't show anymore the option `Logs Stream (Deprecated)` to\r\nprevent usage of this embeddable in new dashboards. The embeddable is\r\nstill registered for retro-compatibility with active dashboards, and it\r\nhas now a callout explaining the status of this embeddable\r\n(unmaintained/deprecated).\r\n- Rename logs ML to \"Logs Anomalies\" and \"Logs Categories\".\r\n\r\nOther minor improvements regard:\r\n- Remove duplicate Xstate utils and use the relative package instead.\r\n- Remove the duplicated `useBoolean` hook used in the deprecation\r\ncallout.\r\n- Sync deep links registration with available routes through a single\r\n`getLogsRoutes` util.\r\n\r\n## 🎥 Recordings\r\n\r\n### Logs Stream app removed\r\n\r\n\r\nhttps://github.com/user-attachments/assets/f4173294-8789-4abd-9972-29c9b7c197ed\r\n\r\n### Logs Stream dashboard panel entry removed\r\n\r\n\r\nhttps://github.com/user-attachments/assets/7f99ca2a-c030-4867-b976-8fdc1df09d29\r\n\r\n### Logs Stream app removed from project nav\r\n\r\n\r\nhttps://github.com/user-attachments/assets/de51bdd6-820a-4c03-8b64-fb1a6ced0a12\r\n\r\n### Embeddable deprecation callout\r\n\r\n<img width=\"949\" alt=\"Screenshot 2024-10-02 at 10 22 09\"\r\nsrc=\"https://github.com/user-attachments/assets/99fd5554-004b-45e4-81db-cb23947e210e\">\r\n\r\n### Unavailable setting in serverless\r\n\r\n\r\nhttps://github.com/user-attachments/assets/91bf6c37-0845-4918-a485-b6250bbd96bf\r\n\r\n---------\r\n\r\nCo-authored-by: Marco Antonio Ghiani <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Mike Birnstiehl <[email protected]>","sha":"9907601dd148ba59420bffda45ff584686f47b43"}}]}] BACKPORT-->
## Release note Logs Stream and the logs settings page in Observability are removed. Use the [Discover](https://www.elastic.co/guide/en/kibana/current/discover.html) application, which now offers a contextual experience for logs, to explore your logs. The logs stream panel in dashboards is removed, use Discover sessions instead. ## 📓 Summary The Logs Stream app in Observability and the log stream panel available in dashboards were hidden behind an advanced setting as part of #194519 in `8.16.0`. At the same time, a link was added to the left navigation for the logs settings page. This PR which targets `9.0.0` disables these pages as well as the dashboard panel: - Removes the navigation item for the logs settings page and the corresponding route - Removes the `observability:enableLogsStream` setting and keeps the redirects to logs explorer. The locators will be updated to point to Discover as part of #182229. Removing the code that renders the logs stream and the settings pages will be done in a [follow-up issue](#204005). ### Left navigation #### Classic <img width="238" alt="image" src="https://github.com/user-attachments/assets/bc72c5ce-ed32-472e-91c1-8bd691dd2420" /> #### Solution <img width="275" alt="image" src="https://github.com/user-attachments/assets/3b21a2ae-5e82-478e-97bb-e12303178a24" /> ### Navigating to /app/logs/settings <img width="1722" alt="image" src="https://github.com/user-attachments/assets/07b4197c-6063-4a59-8194-a97ce2fa3cd7" /> Closes elastic/observability-dev#4156 --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
## Release note Logs Stream and the logs settings page in Observability are removed. Use the [Discover](https://www.elastic.co/guide/en/kibana/current/discover.html) application, which now offers a contextual experience for logs, to explore your logs. The logs stream panel in dashboards is removed, use Discover sessions instead. ## 📓 Summary The Logs Stream app in Observability and the log stream panel available in dashboards were hidden behind an advanced setting as part of elastic#194519 in `8.16.0`. At the same time, a link was added to the left navigation for the logs settings page. This PR which targets `9.0.0` disables these pages as well as the dashboard panel: - Removes the navigation item for the logs settings page and the corresponding route - Removes the `observability:enableLogsStream` setting and keeps the redirects to logs explorer. The locators will be updated to point to Discover as part of elastic#182229. Removing the code that renders the logs stream and the settings pages will be done in a [follow-up issue](elastic#204005). ### Left navigation #### Classic <img width="238" alt="image" src="https://github.com/user-attachments/assets/bc72c5ce-ed32-472e-91c1-8bd691dd2420" /> #### Solution <img width="275" alt="image" src="https://github.com/user-attachments/assets/3b21a2ae-5e82-478e-97bb-e12303178a24" /> ### Navigating to /app/logs/settings <img width="1722" alt="image" src="https://github.com/user-attachments/assets/07b4197c-6063-4a59-8194-a97ce2fa3cd7" /> Closes elastic/observability-dev#4156 --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Release note
The logs stream app is hidden by default - users are advised to use the logs explorer app instead. The logs explorer can be found in the left hand observability menu under Logs > Explorer. When using Elastic Cloud and the observability navigation, Logs Explorer will be displayed as a separate tab under the "Discover" menu item. To re-enable the logs stream app, navigate to Stack management > Advanced settings and enable the
observability:enableLogsStream
setting.📓 Summary
Closes #193319
Closes #193320
This work is part of the effort to progressively deprecate the existing Logs Stream feature.
Changes taken on this PR consist of:
observability:enableLogsStream
which defaults tofalse
on the stateful/cloud deployments and is not available in serverless ones (still, defaults tofalse
behind the scene).observability:enableLogsStream
isfalse
, the Logs Stream page route is not registered, and neither is its deep link for global search.observability:enableLogsStream
isfalse
, the panels list on Dashboard won't show anymore the optionLogs Stream (Deprecated)
to prevent usage of this embeddable in new dashboards. The embeddable is still registered for retro-compatibility with active dashboards, and it has now a callout explaining the status of this embeddable (unmaintained/deprecated).Other minor improvements regard:
useBoolean
hook used in the deprecation callout.getLogsRoutes
util.🎥 Recordings
Logs Stream app removed
remove_logs_stream_app.mov
Logs Stream dashboard panel entry removed
remove_logs_steram_panel.mov
Logs Stream app removed from project nav
remove_logs_stream_project.mov
Embeddable deprecation callout
Unavailable setting in serverless
serverless.mov