# Tracking any specific forecast outside of the Single Metric Viewer

**URL:** <https://discuss.elastic.co/t/tracking-any-specific-forecast-outside-of-the-single-metric-viewer/124874>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [March 20, 2018, 11:01pm UTC](https://discuss.elastic.co/t/tracking-any-specific-forecast-outside-of-the-single-metric-viewer/124874 "2018-03-20T23:01:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscarlf](https://avatars.discourse-cdn.com/v4/letter/o/f08c70/32.png) [@Oscarlf](https://discuss.elastic.co/u/Oscarlf)\
**Post date:** [March 20, 2018, 11:01pm UTC](https://discuss.elastic.co/t/tracking-any-specific-forecast-outside-of-the-single-metric-viewer/124874/1 "2018-03-20T23:01:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Hendrik\_Muhs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendrik_muhs/32/25802_2.png) [@Hendrik\_Muhs](https://discuss.elastic.co/u/Hendrik_Muhs)\
**Post date:** [March 21, 2018, 8:03am UTC](https://discuss.elastic.co/t/tracking-any-specific-forecast-outside-of-the-single-metric-viewer/124874/2 "2018-03-21T08:03:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Oscarlf](https://avatars.discourse-cdn.com/v4/letter/o/f08c70/32.png) [@Oscarlf](https://discuss.elastic.co/u/Oscarlf)\
**Post date:** [March 28, 2018, 4:16pm UTC](https://discuss.elastic.co/t/tracking-any-specific-forecast-outside-of-the-single-metric-viewer/124874/3 "2018-03-28T16:16:55Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 25, 2018, 4:17pm UTC](https://discuss.elastic.co/t/tracking-any-specific-forecast-outside-of-the-single-metric-viewer/124874/4 "2018-04-25T16:17:16Z")

</div>

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