# Apache/php Auto log enrichment Issue

**URL:** <https://community.dynatrace.com/t/apache-php-auto-log-enrichment-issue/41353>\
**Category:** Logs\
**Tags:** distributed-traces-classic, apache, logs\
**Created:** [August 24, 2023, 4:53pm UTC](https://community.dynatrace.com/t/apache-php-auto-log-enrichment-issue/41353 "2023-08-24T16:53:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdg\_jay](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mdg\_jay](https://community.dynatrace.com/u/mdg_jay)\
**Post date:** [August 24, 2023, 4:53pm UTC](https://community.dynatrace.com/t/apache-php-auto-log-enrichment-issue/41353/1 "2023-08-24T16:53:11Z")

</div>

Hello Community Members!

Our apache/php micro-services are not producing auto-enriched logs with distributed traces. Both the technologies are supported to produce auto-enriched logs according to the Dynatrace Docs here:&nbsp;[Connecting log data to traces | Dynatrace Docs](https://www.dynatrace.com/support/help/observe-and-explore/logs/log-management-and-analytics/lma-log-enrichment)&nbsp;The logs are not accessible on the Hosts as well as the Distributed traces section within the Dynatrace console. Please refer to the images below. The necessary OneAgent features are enabled within the environment. The logs are forwarded using the Dynatrace cloud log forwarder.

The micro-services are hosted on AWS ECS using fargate launch type with OneAgent sidecar container spinning up at the launch injecting libraries within the service. The logs are directed to stdout/stderr to the cloudwatch and then forwarded to the Dynatrace!&nbsp;Further details can be shared as appropriate.

Any suggestions?

Regards

Jay

 ![Screenshot 2023-08-24 at 17.35.29.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/1/b1f2aa68b09ad8616d13fbb186e143d681d0ae55.png)

 ![Screenshot 2023-08-24 at 17.38.46.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/a/fa0757865adaf4e1171b968faca212de3cc5166e.png)

---

<div class="post-metadata">

**Author:** ![natanael\_mendes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/natanael_mendes/32/15264_2.png) [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Post date:** [August 24, 2023, 9:09pm UTC](https://community.dynatrace.com/t/apache-php-auto-log-enrichment-issue/41353/2 "2023-08-24T21:09:20Z")

</div>

My suggestion is enable the log enrichment for these tehcnologies in the Oneagent Features or Set an Custom log source configuration

**Enable the log enrichment for these tehcnologies**

Settings-\>Preferences-\>OneAgent features and enable the Trace Span for these technologies

Documentation Link

> **[Connect log data to traces](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/log-monitoring-configuration/log-enrichment-classic)**
>
> Connect your incoming log data to traces for more precise Dynatrace analysis.

Custom Log Source

Settings-\>Log Monitoring-\>Custom Log source configuration

**Documentation Link**

> **[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.
