No single metric view on ML job with scripted field

I've followed the instructions on how "Machine Learning on scripted field?" and have successfully set up an ML job where in the Anomaly Explorer I can see and verify visually the anomalies detected at the expected times.

However, both on the lower part of the anomaly explorer and also on the Single Metric Viewer, there are no graphs. On the Single Metric Viewer, I cannot even select it under the jobs as it's grayed out.

The steps I've followed to set up this job are:

  1. Created a new advanced ML job, added name, description, etc.
  2. Edited the JSON tab and added the scripted field with the desired name for that field
  3. Previewed the datafeed and verified that the scripted field's output was there and that the numbers made sense
  4. Went to the "analysis configuration tab" and added a detector on the new scripted field's name (which was now there)
  5. Saved it and ran the feed

Update 1: I also found this post Single metric viewer, greyed out which however must be for an older version of elasticsearch since the behavior seems different in my case (no error messages, just cannot select it).

Update 2: Found this post: [6.2.4] machine learning on scripted field which is a later one and which says that rightfully so the single metric viewer does not support scripted fields and should by design be greyed out.

@dmitri, given that I'm running 6.5 and we're at 6.6 now, wonder if there any updates on this or any workarounds?

I'm afraid the limitation is still the case.

There is an issue capturing the request to handle scripted fields: https://github.com/elastic/kibana/issues/18464

You can track any progress there.

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.