# Log Monitoring API

**URL:** <https://community.dynatrace.com/t/log-monitoring-api/46567>\
**Category:** Dynatrace API\
**Tags:** log-monitoring-class, logs, dynatrace-api\
**Created:** [July 11, 2024, 8:15pm UTC](https://community.dynatrace.com/t/log-monitoring-api/46567 "2024-07-11T20:15:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankaramessi](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@ankaramessi](https://community.dynatrace.com/u/ankaramessi)\
**Post date:** [July 11, 2024, 8:15pm UTC](https://community.dynatrace.com/t/log-monitoring-api/46567/1 "2024-07-11T20:15:34Z")

</div>

I am configuring a custom log event via the API. I would like the source of errors in the logs to be listed in the problem description. I therefore have log.source in my configuration. My log monitoring path is /logs/data/fit/\*/\*/menu\_\*.log. That path is listed in the problem description. I however would like the specific path (instead of the asterisks) to be listed e.g., /logs/data/fit/container/cont-342/menu\_three.log. Is there an alternative to log.source that will give me a more specific path?

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [July 11, 2024, 11:34pm UTC](https://community.dynatrace.com/t/log-monitoring-api/46567/2 "2024-07-11T23:34:47Z")

</div>

I think configuring the below might help you

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

---

<div class="post-metadata">

**Author:** ![moin\_DT1](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@moin\_DT1](https://community.dynatrace.com/u/moin_DT1)\
**Post date:** [February 28, 2025, 5:25pm UTC](https://community.dynatrace.com/t/log-monitoring-api/46567/3 "2025-02-28T17:25:15Z")

</div>

Hi&nbsp;[@ankaramessi](https://community.dynatrace.com/user/78041)&nbsp;  
May be try adding attributes in Custom Logs Source:

 ![moin_DT1_1-1740763442086.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/563ae5bfb6de41f6325e19e2d2f857fe5f4d05ba.png)

Regards,

Moin
