elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.77k stars 8.18k forks source link

[Logs] Improve field selection for breakdown for Logs Explorer #166600

Open ruflin opened 1 year ago

ruflin commented 1 year ago

Currently if a user clicks on "Break down by" the list of all available fields is shown. For logs explorer in combination with ECS / semconv, we can be opinionated about which fields users likely want to break down the graph. As mentioned in https://github.com/elastic/kibana/issues/166595, the default should be log.level, but there are potentially other fields users will want to see the breakdown to understand what creates how many log messages. The proposed fields are:

It is expected that this list will get expanded with more fields for example in the k8s use case where it might be per pod / node.

Screenshot 2023-09-18 at 11 43 46

The general idea is, having 5-10 fields suggested on the top. If a user really wants to break down by other fields, it should be possible but not shown by default. @isaclfreire We will need ideas on the UX here. Likely this is a similar problem to the field list on the left bar in the logs explorer.

elasticmachine commented 1 year ago

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

elasticmachine commented 11 months ago

Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)

isaclfreire commented 9 months ago

The Discover team will be introducing a different breakdown menu as part of their Discover design refresh (see the one in the left). The main changes I can see are:

Screenshot 2024-01-12 at 12 21 23

I edited the component with the fields suggested (see the one in the right). My questions are:

ruflin commented 8 months ago

It seems the type icons are new. What is the value this info provides in this context? If none, I would leave it out.

gbamparop commented 8 months ago

I think it would make sense to follow the same design and use the component provided, if possible, and just provide our suggested fields to have consistent experience if we don't aim to differentiate much. We could provide our feedback to the current designs