# Datafeed has been retrieving no data for a while

**URL:** <https://discuss.elastic.co/t/datafeed-has-been-retrieving-no-data-for-a-while/224119>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [March 18, 2020, 1:26pm UTC](https://discuss.elastic.co/t/datafeed-has-been-retrieving-no-data-for-a-while/224119 "2020-03-18T13:26:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 18, 2020, 3:28pm UTC](https://discuss.elastic.co/t/datafeed-has-been-retrieving-no-data-for-a-while/224119/4 "2020-03-18T15:28:47Z")

</div>

The simplest possible answer is that your "new" data that is arriving into the index is either:

a) arriving into the index at a time later than "now-`query_delay`" (which in your case seems to be 5 mins). In other words, you have an ingest delay that is more than 5 minutes. So, when the datafeed looks for it in the index - it isn't actually there yet.  
b) have virtually no ingest delay, but the data gets inserted with a timestamp that is significantly "different" than the timestamp of when the data was ingested (due to incorrect time zone definitions, etc)

(or I suppose a combination of the two is possible).

Usually, in most cases, option a) is the reason and that the remedy is usually to either increase your ingest speed or increase the `query_delay` of the datafeed.

See other articles that mention this, for example: [Machine Learning Real-Time Job stopping after initial run](https://discuss.elastic.co/t/machine-learning-real-time-job-stopping-after-initial-run/96524/3)

---

_[View the full topic](https://discuss.elastic.co/t/datafeed-has-been-retrieving-no-data-for-a-while/224119)._
