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

[Discover] Summary column should not filter out mapped fields which start with _ in Observability profile #204771

Open
jughosta opened this issue Dec 18, 2024 · 4 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Project:OneDiscover Enrich Discover with contextual awareness Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Team:obs-ux-logs Observability Logs User Experience Team

Comments

@jughosta
Copy link
Contributor

jughosta commented Dec 18, 2024

Originally reported via https://discuss.elastic.co/t/switch-between-the-document-and-summary-columns-in-kibana-discover/372063

Kibana version: 8.16

Notice that Summary column is empty:
Image

To reproduce:

  • Enable Observability navigation with xpack.spaces.experimental.forceSolutionVisibility: true and switching to Observability solution view via Space settings
  • Add some logs data or run node scripts/synthtrace simple_logs.ts --clean
  • Index this sample document:
PUT logs-100
POST logs-100/_doc
{
  "@timestamp": "2024-12-18T02:26:56.033Z",
  "__level": "info"
}
  • Create logs-* data view in Discover and observe the issue with Summary column.
    (if it the sample document is not shown, adjust the time range to include it or filter for __level field exists)
@jughosta jughosta added bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application Project:OneDiscover Enrich Discover with contextual awareness Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. labels Dec 18, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@jughosta
Copy link
Contributor Author

jughosta commented Dec 18, 2024

We could handle meta fields better instead of excluding any fields starting with _:

'_', // Filter fields like '_id', '_score'

or we could remove the whole filtering logic so it works as it was in Discover, before Summary replaced Document:

export const FILTER_OUT_FIELDS_PREFIXES_FOR_CONTENT = [
'_', // Filter fields like '_id', '_score'
'@timestamp',
'agent.',
'elastic_agent.',
'data_stream.',
'ecs.',
'host.',
'container.',
'cloud.',
'kubernetes.',
'orchestrator.',
'log.',
'service.',
];

Which way would be more preferable?

@jughosta jughosta changed the title [Discover] Summary column should not filter out mapped fields which start with _ [Discover] Summary column should not filter out mapped fields which start with _ in Observability profile Dec 18, 2024
@kertal kertal added the Team:obs-ux-logs Observability Logs User Experience Team label Dec 19, 2024
@elasticmachine
Copy link
Contributor

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

@kertal kertal added the impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. label Dec 27, 2024
@gbamparop
Copy link
Contributor

Which way would be more preferable?

We discussed this with the team and decided to go with the first approach to exclude the relevant metadata fields instead of filtering out all the fields starting with underscore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Project:OneDiscover Enrich Discover with contextual awareness Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Team:obs-ux-logs Observability Logs User Experience Team
Projects
None yet
Development

No branches or pull requests

4 participants