# Change duration after which warning "Datafeed has been retrieving no data for a while" appears

**URL:** <https://discuss.elastic.co/t/change-duration-after-which-warning-datafeed-has-been-retrieving-no-data-for-a-while-appears/348501>\
**Category:** Elasticsearch\
**Created:** [December 3, 2023, 3:38pm UTC](https://discuss.elastic.co/t/change-duration-after-which-warning-datafeed-has-been-retrieving-no-data-for-a-while-appears/348501 "2023-12-03T15:38:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmai16](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@marmai16](https://discuss.elastic.co/u/marmai16)\
**Post date:** [December 3, 2023, 3:38pm UTC](https://discuss.elastic.co/t/change-duration-after-which-warning-datafeed-has-been-retrieving-no-data-for-a-while-appears/348501/1 "2023-12-03T15:38:25Z")

</div>

Hello everyone,

is it possible to change the duration, after which the warning "Datafeed has been retrieving no data for a while" appears relating to an anomaly detection job?

It is perfectly fine, that the datafeed occasionally does not retrieve new data since there are times with no new logs in the index.  
However this causes the notification to pop-up very regularly.

Thank you very much in advance!

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [December 24, 2023, 2:36pm UTC](https://discuss.elastic.co/t/change-duration-after-which-warning-datafeed-has-been-retrieving-no-data-for-a-while-appears/348501/2 "2023-12-24T14:36:53Z")

</div>

> [@marmai16](#):
>
> Hello everyone,
> 
> is it possible to change the duration, after which the warning "Datafeed has been retrieving no data for a while" appears relating to an anomaly detection job?
> 
> It is perfectly fine, that the datafeed occasionally does not retrieve new data since there are times with no new logs in the index.  
> However this causes the notification to pop-up very regularly.
> 
> Thank you very much in advance!

Hi,

Yes, it is possible to change the duration after which the warning "Datafeed has been retrieving no data for a while" appears. This warning is controlled by the query\_delay parameter of the datafeed configuration.

> **[Create datafeeds API | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.11/ml-put-datafeed.html#ml-put-datafeed)**

> **[Handling delayed data | Machine Learning in the Elastic Stack \[8.11\] | Elastic](https://www.elastic.co/guide/en/machine-learning/8.11/ml-delayed-data-detection.html#ml-delayed-data-detection)**

---

<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:** [January 21, 2024, 2:37pm UTC](https://discuss.elastic.co/t/change-duration-after-which-warning-datafeed-has-been-retrieving-no-data-for-a-while-appears/348501/3 "2024-01-21T14:37:41Z")

</div>

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