# Custom log source is not working

**URL:** <https://community.dynatrace.com/t/custom-log-source-is-not-working/40127>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [June 8, 2023, 3:21pm UTC](https://community.dynatrace.com/t/custom-log-source-is-not-working/40127 "2023-06-08T15:21:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![McVitas](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@McVitas](https://community.dynatrace.com/u/McVitas)\
**Post date:** [June 8, 2023, 3:21pm UTC](https://community.dynatrace.com/t/custom-log-source-is-not-working/40127/1 "2023-06-08T15:21:55Z")

</div>

I have added a custom log source for one host where I am testing some script which makes a log file. The file is present on a server however in Dynatrace view of the host it says “File is not included in log monitoring”.

Why is it not included when I have defined this as a custom log source?

I have tried making this again in settings / log monitoring /&nbsp;Custom log source configuration but there is no change. I don’t see this log source in Observe and explore / logs and if I click on it in the host page down it says&nbsp;No data that matches your query.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 8, 2023, 5:13pm UTC](https://community.dynatrace.com/t/custom-log-source-is-not-working/40127/2 "2023-06-08T17:13:55Z")

</div>

I recommend taking a look at the following documentation as it relates to a custom log source just to ensure you have it defined inline with the documentation:&nbsp;[https://www.dynatrace.com/support/help/observe-and-explore/logs/log-management-and-analytics/lma-log-ingestion-via-oa/lma-custom-log-source](https://www.dynatrace.com/support/help/observe-and-explore/logs/log-management-and-analytics/lma-log-ingestion-via-oa/lma-custom-log-source)

---

<div class="post-metadata">

**Author:** ![McVitas](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@McVitas](https://community.dynatrace.com/u/McVitas)\
**Post date:** [June 9, 2023, 7:16am UTC](https://community.dynatrace.com/t/custom-log-source-is-not-working/40127/3 "2023-06-09T07:16:41Z")

</div>

That’s where I have looked and that’s how I have done it according “To configure custom log sources at the host level”, so not sure what’s missing or where is the problem.

 ![McVitas_0-1686294985751.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/a/9a114295c85c56088ab576551f67ba81b0810c61.png)

---

<div class="post-metadata">

**Author:** ![McVitas](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@McVitas](https://community.dynatrace.com/u/McVitas)\
**Post date:** [June 13, 2023, 11:07am UTC](https://community.dynatrace.com/t/custom-log-source-is-not-working/40127/4 "2023-06-13T11:07:49Z")

</div>

OK so I figured that&nbsp;Log storage configuration&nbsp;must be enabled. I thought this is not related, but when I have put there a source based rule to include this file&nbsp;to be stored in Dynatrace suddenly it stopped saying File is not included in log monitoring, I can click on it from host view and I see the content.

---

<div class="post-metadata">

**Author:** ![Ana.Kuzmenchuk](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Ana.Kuzmenchuk](https://community.dynatrace.com/u/Ana.Kuzmenchuk)\
**Post date:** [June 13, 2023, 11:27am UTC](https://community.dynatrace.com/t/custom-log-source-is-not-working/40127/5 "2023-06-13T11:27:22Z")

</div>

Thanks for coming back with the solution,&nbsp;[@McVitas](https://community.dynatrace.com/user/63414)! If anyone else is facing the same issue, they’d know what to look for. Highly appreciated!&nbsp;😊

---

<div class="post-metadata">

**Author:** ![gustavodutra](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gustavodutra/32/35020_2.png) [@gustavodutra](https://community.dynatrace.com/u/gustavodutra)\
**Post date:** [November 23, 2025, 5:17am UTC](https://community.dynatrace.com/t/custom-log-source-is-not-working/40127/6 "2025-11-23T05:17:17Z")

</div>

I’m having the same problem, where did you activate that?
