# Automatic alerting on forcast (machine learning)

**URL:** https://discuss.elastic.co/t/automatic-alerting-on-forcast-machine-learning/260248
**Category:** Elasticsearch
**Tags:** elastic-stack-machine-learning
**Created:** [January 5, 2021, 5:15pm UTC](https://discuss.elastic.co/t/automatic-alerting-on-forcast-machine-learning/260248 "2021-01-05T17:15:59Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)
#### Post date: [January 5, 2021, 10:24pm UTC](https://discuss.elastic.co/t/automatic-alerting-on-forcast-machine-learning/260248/2 "2021-01-05T22:24:43Z")

</div>

Hi Landry,

Just so you know - forecasting only forecasts _trends_ in the data, not anomalies (as that would be impossible).

This question has been answered here in the forum before - see:

> [@Combining Machine Learning forecasts with Watchers](https://discuss.elastic.co/t/combining-machine-learning-forecasts-with-watchers/136318):
>
> Hello, Anyone knows if we can combine forecasts data with watchers. For example, I have created a forecast job that predicts the behavior of a product after 3 weeks. So, now I want gather these data and create a threshold alert using watchers. How can I use the data and how can I create an alert? Thank you very much in advance! Angelos

> [@Alerting on forecast](https://discuss.elastic.co/t/alerting-on-forecast/254100):
>
> Hi, im trying to alert when the forecast prediction value is greater than 95, I need to get the hostname (partition\_value) and the time when the value surpass the treshold of 95, I currently can get the value and the partition\_field\_value, but I cant get the time. GET .ml-anomalies-custom-prediction\*/\_search { "size": 0, "query": { "bool": { "filter": { "range": { "timestamp": { "gte": "now", "lte": "now+4d", "format": "strict…

---

_[View the full topic](https://discuss.elastic.co/t/automatic-alerting-on-forcast-machine-learning/260248)._
