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

Conflicting fields in data views with data stream naming scheme #130242

Closed
Tracked by #166175
ruflin opened this issue Apr 14, 2022 · 7 comments
Closed
Tracked by #166175

Conflicting fields in data views with data stream naming scheme #130242

ruflin opened this issue Apr 14, 2022 · 7 comments
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 Icebox impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. loe:medium Medium Level of Effort Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.

Comments

@ruflin
Copy link
Member

ruflin commented Apr 14, 2022

Elastic Agent and other shippers are following the data stream naming scheme. This means that all that is shipped into data streams named as following: {type}-{dataset}-{namespace}. Many of the fields used are ECS but each data stream can also contain its own fields. This means for example logs-foo-default and logs-bar-default can both contain the field field1 and in one data stream it is keyword, in the other data stream it is float. This is ok and doesn't provide any problems for visualisations as these are normally built based on {type}-{dataset}-*. And when querying on Elasticsearch on logs-* for the field field1: 0.1, it works.

The problem is that we use a global logs-* data view for easy selection for our users as we don't want to create a data view for each data stream. But data views do not like conflicting fields as the type can't be fully detected. As described above, the conflict is expected so showing users a conflict indicates an error. There are cases where the data should be fixed like in #73797 but still data views should keep working.

Long term I think we should fix the more fundamental issue on how we use data views. Short term one idea to overcome the problem would be to be able to create data views with a flag, that such conflicts should not be shown as an error.

Related issues:

@botelastic botelastic bot added the needs-team Issues missing a team label label Apr 14, 2022
@ruflin
Copy link
Member Author

ruflin commented Apr 14, 2022

@mattkime Original discussion happened here #73797 (comment) and #73797 (comment)

@mattkime mattkime added Team:AppServicesSv and removed needs-team Issues missing a team label labels Apr 14, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServicesSv)

@mattkime mattkime added the Feature:Data Views Data Views code and UI - index patterns before 8.0 label Apr 14, 2022
@mattkime
Copy link
Contributor

@ruflin Is this a problem in places aside from data view management?

@exalate-issue-sync exalate-issue-sync bot added the impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. label Apr 16, 2022
@ruflin
Copy link
Member Author

ruflin commented Apr 25, 2022

@elastic/integrations @ChrsMark Did you ever see this in visualisations.

AFAIK it is mainly in the data view management and in discovery where also an error is shown for the field.

@mattkime
Copy link
Contributor

AFAIK it is mainly in the data view management and in discovery where also an error is shown for the field.

I'm still lacking a full user story - is the problem that users see the conflict and then think it needs resolving?

Maybe this is more about communication through the UI than anything else. Perhaps we just need to de-emphasize conflicting fields. It would be nice if we could highlight the problem only where users are affected and be more specific about what functionality is missing.

@kertal kertal added bug Fixes for quality problems that affect the customer experience and removed bug Fixes for quality problems that affect the customer experience labels Nov 18, 2022
@vadimkibana vadimkibana added Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. and removed Team:AppServicesSv labels Jan 15, 2024
@elasticmachine
Copy link
Contributor

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

@kertal
Copy link
Member

kertal commented Oct 22, 2024

Closing this because it's not planned to be resolved in the foreseeable future. It will be tracked in our Icebox and will be re-opened if our priorities change. Feel free to re-open if you think it should be melted sooner.

@kertal kertal closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 Icebox impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. loe:medium Medium Level of Effort Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Projects
None yet
Development

No branches or pull requests

5 participants