elastic / kibana

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

[ML] Transforms: Wizard should "alert" me when using a data view with @timestamp instead of event.ingested #152451

Open philippkahr opened 1 year ago

philippkahr commented 1 year ago

Describe the feature:

As the title says. We highly recommend to use event.ingested, to not miss any documents. https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-checkpoints.html#sync-field-ingest-timestamp

Still when using a data view that uses @timestamp you can miss documents and not get any information about it. Would it be possible to leverage the create data view on the fly without saving that is now available in Lens and Discover and base the transform upon that?

Screenshot 2023-03-01 at 13 19 03

Even better would be, I select logs, transform alerts me about @timestamp, I can click ignore, change to event.ingested and the transform creates a temp data view for event.ingested, without me noticing anything.

Of course, that would require some kind of logic for the transform to verify that the event.ingested field is populated.

Describe a specific use case for the feature: Ux improvements.

elasticmachine commented 1 year ago

Pinging @elastic/ml-ui (:ml)

walterra commented 1 year ago

Thanks for the feedback! I'd like to summarize the current state of the wizard as of 8.7, then maybe we can identify some concrete steps how to improve.

So looking at the above, the UI currently doesn't block you from picking the right date field, it might just not be that obvious. One thing we could do to make this more clear is to add the information which time field the date picker is using because that's currently not mentioned anywhere. As part of that we could add information/guidance that other date fields are still available in the rest of the form.