Skip to content
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

[Logs UI] Retrieve log entry field values via the unified fields API #76506

Closed
weltenwort opened this issue Sep 2, 2020 · 1 comment · Fixed by #76919
Closed

[Logs UI] Retrieve log entry field values via the unified fields API #76506

weltenwort opened this issue Sep 2, 2020 · 1 comment · Fixed by #76919
Labels
Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services

Comments

@weltenwort
Copy link
Member

weltenwort commented Sep 2, 2020

Summary

Right now the Logs UI is accessing the values of the log entry documents via _source, while some other parts of the UI (such as the query bar) use the mapping to determine the field list. This means that fields that don't have one-to-one correspondence between the mapping and the source will behave inconsistently. This is especially true for field types like alias fields and runtime fields. In order to make the behavior more consistent and support the various mapped field types the values of log entries should be accessed via the fields API.

Acceptance criteria

  • The getLogEntries function of the logEntries lib uses the fields API instead of _source.
  • The getLogItem function of the logEntries lib uses the fields API instead of _source.
  • The functions to get examples for log entry anomalies and categories in the logAnalysis lib use the fields API instead if _source.

Open questions

@weltenwort weltenwort added Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Sep 2, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants