Skip to content

[Logs UI] Redirect Logs UI routes to Discover when serverless #153890

@weltenwort

Description

@weltenwort

📓 Summary

Since the Logs UI will not be the main log consumption UI when Kibana is run in observability-serverless mode, we want to reconfigure the client-side routes to redirect to a different UI in that case. Where exactly that UI will be located and how it can be linked to has not been decided, so we need to link to Discover for now.

✔️ Acceptance criteria

  • There is a configuration option in the infra plugin, which switches the behavior of the client-side routes.
  • When unset or set to the default value logs-ui, the routes behave as before and below changes don't have any effect.
  • When set to the constant discover, the app routes of the Logs UI redirect to equivalent Discover views using locators:
    • When the Logs UI is configured to use an index name pattern, the redirect contains an equivalent ad-hoc data view.
    • When the Logs UI is configured to use a data view, the redirect contains its id.
    • The redirect sets the columns in discover to match the columns of the log view.
      • The field type columns are used as they are.
      • The timestamp type column is translated into a column showing the @timestamp field.
      • The message type column is translated into a column showing the message field.
  • In the file config/serverless.oblt.yml the configuration option is set to discover.

💡 Implementation hints

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions