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] View log in context modal #62198

Merged
merged 26 commits into from
Apr 24, 2020

Conversation

afgomez
Copy link
Contributor

@afgomez afgomez commented Apr 1, 2020

Summary

Closes #58487.

Implements a feature to show a certain log line within context. We define context as either:

  • Lines within the same host.name and log.file.path
  • Lines within the same container.id

Final view (we removed the line at the top of the modal that repeated the "selected log" and changed the selected log highlight to yellow so it stands out, with a tooltip as well)

Screenshot 2020-04-22 at 10 42 21

Screenshot 2020-04-22 at 10 42 10

Checklist

For maintainers

@afgomez afgomez marked this pull request as ready for review April 16, 2020 13:16
@afgomez afgomez requested a review from a team as a code owner April 16, 2020 13:16
Alejandro Fernández Gómez added 2 commits April 16, 2020 15:19
The default props for `<EuiFlexGroup>` add a `flex-wrap` to the flex group that
makes things break on mobile.

To fix the layout on narrow screens and ensure the content doesn't wrap
we need to set `responsive={false}`, ironically.
@afgomez afgomez added Feature:Logs UI Logs UI feature release_note:enhancement Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.8.0 v8.0.0 labels Apr 16, 2020
@elasticmachine
Copy link
Contributor

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

@afgomez
Copy link
Contributor Author

afgomez commented Apr 16, 2020

@elasticmachine merge upstream

Copy link
Member

@jasonrhodes jasonrhodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Based on conversation with @mukeshelastic, let's remove the "selected log line" at the top of the modal and this should be good to go.

@felixbarny
Copy link
Member

felixbarny commented Apr 22, 2020

Lines within the same host.name and log.file.path

Question about log.file.path. That field comes from Filebeat, right? It is, however, not an official ECS field: https://www.elastic.co/guide/en/ecs/current/ecs-log.html. Do you know when and if Filebeat plans to move to file.path? Would it be feasible to consider both log.file.path and file.path for view context in line?

@roncohen
Copy link
Contributor

@felixbarny elastic/ecs#802

@jasonrhodes
Copy link
Member

@elasticmachine merge upstream

@afgomez
Copy link
Contributor Author

afgomez commented Apr 24, 2020

@elasticmachine merge upstream

@afgomez afgomez merged commit 53b33bb into elastic:master Apr 24, 2020
@afgomez afgomez deleted the 58487-view-logs-in-context-modal branch April 24, 2020 20:29
@roncohen
Copy link
Contributor

👏

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

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 release_note:enhancement Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Logs UI] view log line in context
6 participants