# Why I can't see traces in Log view page ? (Logs connected to traces not working)

**URL:** <https://community.dynatrace.com/t/why-i-cant-see-traces-in-log-view-page-logs-connected-to-traces-not-working/39196>\
**Category:** Troubleshooting\
**Tags:** log-monitoring-class\
**Created:** [April 7, 2023, 7:15am UTC](https://community.dynatrace.com/t/why-i-cant-see-traces-in-log-view-page-logs-connected-to-traces-not-working/39196 "2023-04-07T07:15:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![noel\_david](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@noel\_david](https://community.dynatrace.com/u/noel_david)\
**Post date:** [April 7, 2023, 7:15am UTC](https://community.dynatrace.com/t/why-i-cant-see-traces-in-log-view-page-logs-connected-to-traces-not-working/39196/1 "2023-04-07T07:15:27Z")

</div>

# Summary

Dynatrace can enrich your ingested log data with additional information that helps Dynatrace to recognize, correlate, and evaluate the data. Log enrichment results in a more refined analysis of your logs.

# Problem

Traces are not being enriched with logs, even though logs are present and are being captured.

# Troubleshooting steps

Things to check when automatic log enrichment is not working.

- Make sure [traces](https://docs.dynatrace.com/docs/shortlink/distributed-traces-grail) (purepath) related to the flow are also there. The distributed trace must be created first.
- Check the Dynatrace [OneAgent version](https://docs.dynatrace.com/docs/whats-new/oneagent). If possible, always use the latest version. You can verify the OneAgent version in the trace by looking at the attributes.

 ![noel_david_0-1755682048296.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/e/cef19e8f3932f27d5a6d635b620ab7b5a2299081.png)

- Log monitoring V2 must be enabled for the managed customer or Log on Grail for SaaS.
- The enriched logs should have&nbsp;`dt.span_id`,&nbsp;`dt.trace_id`,&nbsp;`dt.trace_sampled` fields, below is an example of a sample log file. Note that&nbsp; if&nbsp;`dt.trace_sampled= false`&nbsp;implies that the trace related to that log was hit by [ATM](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/adaptive-traffic-management), and as such, that specific trace won’t be available.

 ![noel_david_0-1756193796198.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/b/cb0f6647050d748804a9b7c156b3cbf870140904.png)

- Check if the logging [framework](https://www.dynatrace.com/support/help/shortlink/log-monitoring-log-enrichment#supported-frameworks) used is supported. Details are given on the documentation page below.
- Make sure you have enabled the feature for Log enrichment at the process group level or global level.  
You can do this by following these steps.
  - In the&nbsp;[Dynatrace menu](https://www.dynatrace.com/support/help/get-started/dynatrace-ui/navigation), go to&nbsp; **Settings** &nbsp;and select&nbsp; **Preferences** &nbsp;\>&nbsp; **OneAgent features**.
  - Filter for&nbsp; **enrichment**.
  - Enable/disable each log enrichment for each technology that you use to generate ingested log data.
  - Select&nbsp; **Save changes** &nbsp;to save your configuration.

# What’s next

If you still face any issues, create a ticket wth the below details.

- Link to the distributed traces
- Link to the logs that must be linked to the above trace.
- Logging framework used.

### Related reading

**[Logs Troubleshooting Map](https://community.dynatrace.com/topic/302260)**

---

<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:** [May 12, 2023, 6:55pm UTC](https://community.dynatrace.com/t/why-i-cant-see-traces-in-log-view-page-logs-connected-to-traces-not-working/39196/2 "2023-05-12T18:55:42Z")

</div>

An old OneAgent Version is a common issue, Thank you for sharing this! I’m sure it will help out many community members.
