# Custom logs - Newly added log path not harvested

**URL:** <https://discuss.elastic.co/t/custom-logs-newly-added-log-path-not-harvested/278341>\
**Category:** Elastic Observability\
**Tags:** fleet\
**Created:** [July 10, 2021, 7:03pm UTC](https://discuss.elastic.co/t/custom-logs-newly-added-log-path-not-harvested/278341 "2021-07-10T19:03:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bravo](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bravo](https://discuss.elastic.co/u/bravo)\
**Post date:** [July 10, 2021, 7:03pm UTC](https://discuss.elastic.co/t/custom-logs-newly-added-log-path-not-harvested/278341/1 "2021-07-10T19:03:54Z")

</div>

Fleet has been a saviour and a great tool to monitor server and logs easily. Thanks for making such an awesome product.

Have an existing custom logs integration and its harvesting files from a path and are being indexed correctly. Added another log path to the same integration, but the log entries on the files are neither indexed nor the log file name appears in the elastic-agent/ file-beat agent logs. Seems the new path is not being harvested.

_We tried restarting the agent, re-adding the new log path, re enrolled the agent, reinstalled agent, waited for few days 🙂 , made sure the new path generates similar kind of log entries as the old working one (so ingest pipline is working). Still no luck ☹_

We see a strange **Out-of-date** next to the agent policy. All intergrations are up-to-date.

```auto
api-server Healthy API rev. 57 Out-of-date 7.13.1 in 20 seconds

```

Can someone guide us in debugging this issue.

---

<div class="post-metadata">

**Author:** ![bravo](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bravo](https://discuss.elastic.co/u/bravo)\
**Post date:** [August 12, 2021, 11:34am UTC](https://discuss.elastic.co/t/custom-logs-newly-added-log-path-not-harvested/278341/2 "2021-08-12T11:34:40Z")

</div>

One of the field of the documents was mismatching with the existing index pattern field type. So document was not getting indexed.

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [August 16, 2021, 9:24am UTC](https://discuss.elastic.co/t/custom-logs-newly-added-log-path-not-harvested/278341/3 "2021-08-16T09:24:53Z")

</div>

@bravo, glad you managed to find the cause. Thanks for sharing the solution.

---

<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:** [November 4, 2022, 8:31am UTC](https://discuss.elastic.co/t/custom-logs-newly-added-log-path-not-harvested/278341/4 "2022-11-04T08:31:26Z")

</div>


