# Datafeed missing in ML job

**URL:** <https://discuss.elastic.co/t/datafeed-missing-in-ml-job/254343>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [November 5, 2020, 1:57am UTC](https://discuss.elastic.co/t/datafeed-missing-in-ml-job/254343 "2020-11-05T01:57:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lcawley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lcawley/32/58441_2.png) [@lcawley](https://discuss.elastic.co/u/lcawley)\
**Post date:** [November 5, 2020, 6:44pm UTC](https://discuss.elastic.co/t/datafeed-missing-in-ml-job/254343/2 "2020-11-05T18:44:24Z")

</div>

Hello! I think there is some good applicable advice in [Datafeed has missed documents due to ingest latency error](https://discuss.elastic.co/t/datafeed-has-missed-documents-due-to-ingest-latency-error/246016)

In particular, there are references there to

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

and [Calculating ingest lag and storing ingest time in Elasticsearch to improve observability | Elastic Blog](https://www.elastic.co/blog/calculating-ingest-lag-and-storing-ingest-time-in-elasticsearch-to-improve-observability)

Sophie also provided the following advice, which I think is applicable here too:

> Before you change your ingest, as a first step you could also try a manual validation that you have delayed data by running a search that will replicate what the delayed data check is trying to achieve. Assuming you have a `15m``bucket_span` and a `30m``query_delay` , create a date histogram search e.g. count of events every 15m from `now-90m` say. Manually refresh this periodically over the course of the next 90m and see if the counts change as time elapses. Pay particular attention to the counts from time buckets that are greater than 30m ago. If these are changing, this suggests an ingest latency.

---

_[View the full topic](https://discuss.elastic.co/t/datafeed-missing-in-ml-job/254343)._
