# Log monitoring wildcards

**URL:** <https://community.dynatrace.com/t/log-monitoring-wildcards/52911>\
**Category:** Logs\
**Tags:** log-processing, log-monitoring-class, log-configuration, logs\
**Created:** [August 12, 2025, 8:48am UTC](https://community.dynatrace.com/t/log-monitoring-wildcards/52911 "2025-08-12T08:48:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agoyals](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@Agoyals](https://community.dynatrace.com/u/Agoyals)\
**Post date:** [August 12, 2025, 8:48am UTC](https://community.dynatrace.com/t/log-monitoring-wildcards/52911/1 "2025-08-12T08:48:47Z")

</div>

Hi,

I am new to Dynatrace. Looking to monitor some logs which present in multiple directory (multi depth). Trying to find a way where can define a single source so it can cover all the matching pattern logs recursively in all sub directories.

example:  
/logs/abc.gc.log  
/logs/xyz/abc.gc.log  
/logs/zys/xyz/abc.gc.log

I was trying something like this but seems incorrect

/logs/\*\*/abc.gc.log&nbsp; &nbsp;(this doesn’t cover multiple depths)

Is there any way where we can define this in single source&nbsp; ?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [August 13, 2025, 9:36am UTC](https://community.dynatrace.com/t/log-monitoring-wildcards/52911/2 "2025-08-13T09:36:44Z")

</div>

Hi,

You can check [Log file matching](https://docs.dynatrace.com/docs/shortlink/log-monitoring-custom-source#log-file-matching).

Best regards

---

<div class="post-metadata">

**Author:** ![Agoyals](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@Agoyals](https://community.dynatrace.com/u/Agoyals)\
**Post date:** [August 13, 2025, 10:01am UTC](https://community.dynatrace.com/t/log-monitoring-wildcards/52911/3 "2025-08-13T10:01:20Z")

</div>

Its not mentioned there that’s why checking here. if any one else experienced such requirement and have idea how to configure such use case.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [August 14, 2025, 6:58pm UTC](https://community.dynatrace.com/t/log-monitoring-wildcards/52911/4 "2025-08-14T18:58:49Z")

</div>

Hi,

Do you see which logs are autodiscovered by OneAgent?

Best regards

---

<div class="post-metadata">

**Author:** ![lubrman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lubrman/32/7353_2.png) [@lubrman](https://community.dynatrace.com/u/lubrman)\
**Post date:** [August 15, 2025, 6:07am UTC](https://community.dynatrace.com/t/log-monitoring-wildcards/52911/5 "2025-08-15T06:07:21Z")

</div>

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

It’s strange that \*\* didn’t work, as it should recursively ignore the number of nested directories.  
Perhaps a possible solution would be to define in Grail “File name equals abc.gc.log” along with the condition “Path contains /logs/”.
