# Anomalies and bucket span

**URL:** <https://discuss.elastic.co/t/anomalies-and-bucket-span/282601>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [August 26, 2021, 4:18pm UTC](https://discuss.elastic.co/t/anomalies-and-bucket-span/282601 "2021-08-26T16:18:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [August 26, 2021, 4:18pm UTC](https://discuss.elastic.co/t/anomalies-and-bucket-span/282601/1 "2021-08-26T16:18:36Z")

</div>

Hi, I have a ML job with a bucket span of 5 minutes. when an anomaly is detected and displayed in a graph, the red dot is the beggining of that bucket span? or the end of the bucket span? in other words the red dot indicates that the previous 5 minutes where anomalous or the following 5 minutes are anomalous?

![image](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d99aab5c7fab3f81c4f38032c1da95a193a22212.png)

---

<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:** [August 28, 2021, 1:17pm UTC](https://discuss.elastic.co/t/anomalies-and-bucket-span/282601/2 "2021-08-28T13:17:38Z")

</div>

the `timestamp` written for the anomaly is for the time that is the beginning of the bucket span  
Therefore, an anomaly with a `timestamp` of `13:50:00` and a bucket span of `5m` will mean that the anomaly occurred in the 13:50:00-13:55:00 range

---

<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:** [September 25, 2021, 1:18pm UTC](https://discuss.elastic.co/t/anomalies-and-bucket-span/282601/3 "2021-09-25T13:18:16Z")

</div>

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