# Unable to capture the logs with added rules in custom log source and log ingest

**URL:** <https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455>\
**Category:** Logs\
**Tags:** log-processing, log-monitoring-class, logs\
**Created:** [September 23, 2025, 11:03am UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455 "2025-09-23T11:03:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![juveria](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@juveria](https://community.dynatrace.com/u/juveria)\
**Post date:** [September 23, 2025, 11:03am UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/1 "2025-09-23T11:03:13Z")

</div>

Hi Team,

We are enabling log monitoring for one server in PreProd  
Customer has given us the path&nbsp; :&nbsp; E:\NRI\_Logs\HSL\_NRI\ DT\15092025 .log  
We have added the rules in custom log source and log ingest rules but still unable to capture the logs  
Link to the environment :&nbsp;&nbsp;[https://fso.hdfcsec.com/e/92ce50fc-1436-494f-9d53-eb71b403a520/ui/settings/HOST-D6832D53ADBDE067/bu](https://fso.hdfcsec.com/e/92ce50fc-1436-494f-9d53-eb71b403a520/ui/settings/HOST-D6832D53ADBDE067/bu)

…Can u please help what could be missing so that i can capture the logs.

Thanks in advance

 ![log.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/7/c/7cd66cd46f38daaf10928a6d7d22135f0ad8ecd2.jpeg)

---

<div class="post-metadata">

**Author:** ![juveria](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@juveria](https://community.dynatrace.com/u/juveria)\
**Post date:** [September 23, 2025, 11:06am UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/2 "2025-09-23T11:06:36Z")

</div>

[https://dynatrace.slack.com/archives/C74N5RMK6/p1758619203169829](https://dynatrace.slack.com/archives/C74N5RMK6/p1758619203169829)  
Added support archive here

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [September 24, 2025, 10:08am UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/3 "2025-09-24T10:08:45Z")

</div>

Hi&nbsp;[@juveria](https://community.dynatrace.com/user/54884)

i can see there is a space before DT and before .log, is it added like this?

Best Regards,

Hamdy

---

<div class="post-metadata">

**Author:** ![juveria](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@juveria](https://community.dynatrace.com/u/juveria)\
**Post date:** [September 24, 2025, 10:18am UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/4 "2025-09-24T10:18:02Z")

</div>

No Hamdy,&nbsp;E:\NRI\_Logs\HSL\_NRI\DT\*.log,

I have added in attachment snap.

Regards,

Juveria

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [September 24, 2025, 12:59pm UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/5 "2025-09-24T12:59:24Z")

</div>

thank you&nbsp;[@juveria](https://community.dynatrace.com/user/54884)&nbsp;,&nbsp;Apologies—I hadn’t checked the attached snapshot.  
Unfortunately, I don’t have access to the support archive or the tenant. I believe you’ll need to follow the rules for adding a custom log file: the log path must be located on the first or second level of the log or logs directory. For more details, please see: [https://docs.dynatrace.com/managed/shortlink/log-monitoring-custom-source#security-rules](https://docs.dynatrace.com/managed/shortlink/log-monitoring-custom-source#security-rules)

---

<div class="post-metadata">

**Author:** ![juveria](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@juveria](https://community.dynatrace.com/u/juveria)\
**Post date:** [September 24, 2025, 1:54pm UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/6 "2025-09-24T13:54:50Z")

</div>

Thanks Hamdy will try that.

---

<div class="post-metadata">

**Author:** ![Akhil-Jayendran](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/akhil-jayendran/32/153_2.png) [@Akhil-Jayendran](https://community.dynatrace.com/u/Akhil-Jayendran)\
**Post date:** [September 25, 2025, 3:55am UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/7 "2025-09-25T03:55:08Z")

</div>

Hi&nbsp;[@juveria](https://community.dynatrace.com/user/54884)&nbsp;,

As Hamdy mentioned, you should add a custom log source in order to get the logs in Dynatrace. [@Mohamed\_Hamdy](https://community.dynatrace.com/user/4007)

Does Dynatrace really have a limitation on the log path? I couldn’t find it in the documentation. I noticed this restriction applies to autodiscovery, not to custom log sources. Once we add the log source, we should be able to ingest the logs without issues.

> **[Autodiscovery requirements - Log content autodiscovery](https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-ingestion/lma-log-ingestion-via-oa/lma-autodiscovery#autodiscoveryrequirements)**
>
> By default, Dynatrace automatically discovers and analyzes new log files, and stores them if selected for ingestion based on log ingest rules. For trial users, everything is already set up, allowing you to start analyzing logs immediately without...

 ![Screenshot 2025-09-24 at 10.52.04 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a889f2a6e8f3f4185777acde2d7cd0160b058aa4.png)

---

<div class="post-metadata">

**Author:** ![juveria](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@juveria](https://community.dynatrace.com/u/juveria)\
**Post date:** [September 25, 2025, 4:06am UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/8 "2025-09-25T04:06:50Z")

</div>

Hi Akhil,

Yes its already added in custom log source, but regarding the path i just checked for other applications we can see the path is not a concern , even for the log output on the fourth level we are capturing the logs

Regards,

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [September 25, 2025, 5:13am UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/9 "2025-09-25T05:13:43Z")

</div>

Hello&nbsp;[@Akhil-Jayendran](https://community.dynatrace.com/user/52584)&nbsp;, There are a few rules that must be met. One of them is: “A log path must be located on the first or second level of the log or logs directory.” However, I believe the first rule (log extension separated by ., -, or \_) is already satisfied.  
References:

> **[Security rules - Custom log source (Logs Classic)](https://docs.dynatrace.com/managed/analyze-explore-automate/log-monitoring/acquire-log-data/log-custom-source#security-rules)**
>
> Log Monitoring Classic | Configure custom log sources that have not been autodetected.

> **[Custom log source](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/acquire-log-data/log-custom-source-classic)**
>
> Configure custom log sources to manually add log data sources that have not been autodetected.

[@juveria](https://community.dynatrace.com/user/54884), could you please share a screenshot of the files under this directory?

---

<div class="post-metadata">

**Author:** ![juveria](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@juveria](https://community.dynatrace.com/u/juveria)\
**Post date:** [September 25, 2025, 5:21am UTC](https://community.dynatrace.com/t/unable-to-capture-the-logs-with-added-rules-in-custom-log-source-and-log-ingest/53455/10 "2025-09-25T05:21:13Z")

</div>

Hi Hamdy,

PFA

 ![im.PNG](https://global.discourse-cdn.com/dynatrace/original/3X/a/4/a4ba1d9ee38ec2a23a6bcf60af315dddc9602bcc.png)
