# Issues with Forecast Start Times in Anomaly Detection Job

**URL:** <https://discuss.elastic.co/t/issues-with-forecast-start-times-in-anomaly-detection-job/370212>\
**Category:** Elastic Stack\
**Tags:** elastic-stack-machine-learning\
**Created:** [November 8, 2024, 10:53am UTC](https://discuss.elastic.co/t/issues-with-forecast-start-times-in-anomaly-detection-job/370212 "2024-11-08T10:53:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Muller](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomas_muller/32/137780_2.png) [@Thomas\_Muller](https://discuss.elastic.co/u/Thomas_Muller)\
**Post date:** [November 8, 2024, 10:53am UTC](https://discuss.elastic.co/t/issues-with-forecast-start-times-in-anomaly-detection-job/370212/1 "2024-11-08T10:53:30Z")

</div>

Hello everyone,

I started an anomaly detection job with the following detector:

`mean("datapoint.value") partition_field_name="datapoint.external_id"`

The `bucket_span` is `15m` and new documents are index every 5 minutes.

The results have been fantastic. However, I'm facing an issue when I try to start a forecast. The forecast starts at different times.

For most `partition_fields`, the forecast begins right at the last point where data was loaded into the index. But for others, it starts 1 to 4 hours later, and in one example, even 2.5 hours in the past.

Is this a configuration error, or could it be intentional that the forecast only shows values when it’s confident they could be accurate? However, this wouldn't explain why some results are in the past.

I've already recreated the job with different configurations and visualized the forecast data in a dashboard to confirm it wasn't an issue with the Single Metric Viewer. However, the same `partition_fields` keep showing the same time shifts.

 ![Anomaly1](https://us1.discourse-cdn.com/elastic/original/3X/2/4/24cfe42fad710e2456150a23cf66ae56a78dc3b4.png)

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [November 12, 2024, 7:24pm UTC](https://discuss.elastic.co/t/issues-with-forecast-start-times-in-anomaly-detection-job/370212/2 "2024-11-12T19:24:18Z")

</div>

Category updated on November 12, 2024, 7:24pm UTC

From #Kibana to #Elastic Stack

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [November 12, 2024, 7:24pm UTC](https://discuss.elastic.co/t/issues-with-forecast-start-times-in-anomaly-detection-job/370212/3 "2024-11-12T19:24:18Z")

</div>

Tags updated on November 12, 2024, 7:24pm UTC

Removed #elastic-stack-machine-learning

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [November 12, 2024, 7:27pm UTC](https://discuss.elastic.co/t/issues-with-forecast-start-times-in-anomaly-detection-job/370212/4 "2024-11-12T19:27:42Z")

</div>

Tags updated on November 12, 2024, 7:27pm UTC

Added #elastic-stack-machine-learning
