Tracking any specific forecast outside of the Single Metric Viewer

Hi all!

We are just moving to the 6.2 version in Kibana and generating some forecast exercises, and we knew can only see the last five scenarios by openning the Sinlge Metric Viewer, however it's my understanding there is an other form to access all of them, could you please give some light on it?

Thanks in advance!

OL

Hi Oscar,

all forecast results are written back to the result index of the job, that is default the shared index: .ml-anomalies-shared but you can also use a dedicated index.

Having all data in an index you can use the full power of search queries to look into your data. For getting all forecast id's I suggest a terms aggregation:

GET .ml-anomalies-shared/_search
{
  "query": {
    "bool": {
      "filter": [
        {
          "query_string": {
            "query": "result_type:model_forecast"
          }
        },
        {
          "query_string": {
            "query": "job_id:n1"
          }
        }
      ]
    }
  },
  "size": 0,
  "aggs": {
    "ids": {
      "terms": {
        "field": "forecast_id"
      }
    }
  }
}  

Please change job_id accordingly. I will answer the question about accessing the results via search in your other opened topic.

Hi Hendrik_Muhs, thank you very much! I do really appreciate your help on this. We are now able to access the data. Best regards!

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