# Machine Learning - Anomaly Detection Jobs

**URL:** <https://discuss.elastic.co/t/machine-learning-anomaly-detection-jobs/338433>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [July 14, 2023, 6:41pm UTC](https://discuss.elastic.co/t/machine-learning-anomaly-detection-jobs/338433 "2023-07-14T18:41:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhonfechavez](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@Jhonfechavez](https://discuss.elastic.co/u/Jhonfechavez)\
**Post date:** [July 14, 2023, 6:41pm UTC](https://discuss.elastic.co/t/machine-learning-anomaly-detection-jobs/338433/1 "2023-07-14T18:41:03Z")

</div>

We have a Job in order to monitor our APM services using the following detectors:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6c9eaf29670433354132f26610539a6c2f70f2af.png)

Yesterday we restarted the Job (Stop - start datafeed) and we are getting the following error:

**"Datafeed is encountering errors extracting data: Partial shards failure"**

Can you guys guide me in how to diagnose this? I'm new using Elastic and I don't even know how to look at the logs to at least have a clue what to do.

Thanks a lot.

Jhon.

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [July 14, 2023, 8:15pm UTC](https://discuss.elastic.co/t/machine-learning-anomaly-detection-jobs/338433/2 "2023-07-14T20:15:31Z")

</div>

Hello @Jhonfechavez,

Welcome to the community.

Sure! Could you please try restarting the failed anomaly detection job following the procedure described [here](https://www.elastic.co/guide/en/machine-learning/8.8/ml-ad-troubleshooting.html#ml-ad-restart-failed-jobs)?

If the restarted job runs as expected, then the problem that caused the job to fail was transient and no further investigation is needed.

---

<div class="post-metadata">

**Author:** ![Jhonfechavez](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@Jhonfechavez](https://discuss.elastic.co/u/Jhonfechavez)\
**Post date:** [July 14, 2023, 10:09pm UTC](https://discuss.elastic.co/t/machine-learning-anomaly-detection-jobs/338433/3 "2023-07-14T22:09:10Z")

</div>

Hello @Priscilla_Parodi

Thanks for the reply. I restarted as you suggest but the problem persist:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/6/862250c680283a8b1f85cb00c8fe18f7da99d6ff.png)

Could you please show me how to see the logs related to this (machine learning Jobs).

Thanks.

Jhon.

---

<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:** [August 11, 2023, 10:09pm UTC](https://discuss.elastic.co/t/machine-learning-anomaly-detection-jobs/338433/4 "2023-08-11T22:09:11Z")

</div>

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