Export forecast data

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.

Therefore you can access all results via search, e.g.

GET .ml-anomalies-shared/_search
{
  "query": {
    "bool": {
      "filter": [
        {
          "query_string": {
            "query": "result_type:model_forecast"
          }
        },
        {
          "query_string": {
            "query": "job_id:n1"
          }
        }
      ]
    }
  }
}

In the result you will see the fields forecast_lower, forecast_upper, forecast_prediction along with timestamp which is the timestamp of the prediction.

Happy forecasting!

1 Like