Skip to content

[ML] Datafeed _preview should work with configs  #70264

@sophiec20

Description

@sophiec20

The anomaly detection datafeed _preview currently requires that the datafeed has already been created. https://www.elastic.co/guide/en/elasticsearch/reference/7.11/ml-preview-datafeed.html

As an enhancement, it would be useful to preview source data before creating it. For example:

  • To check if relevant data exists before creating the job - avoiding unnecessary object creation, unnecessary memory usage and in order to explain to users why no anomalies are being found
  • To check that the expected data will be analysed - useful if trying to hand craft complex aggs or scripted fields or complex filters
  • To simplify UI code which already performs a preview step of its own - will also make sure results match

Being able to preview source data by supplying a potential config, also aligns with POST _ml/data_frame/analytics/_explain and POST _transform/_preview, both of which can be performed prior to creating the job/transform.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions