<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Logs is correlated to traces despite dt.span_id, dt.trace_id, dt.trace_sampled are absent in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/Logs-is-correlated-to-traces-despite-dt-span-id-dt-trace-id-dt/m-p/277883#M1338</link>
    <description>&lt;P&gt;I have open a ticket to Dynatrace about why traces don’t have log.&lt;/P&gt;&lt;P&gt;Then based on the &lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-enrichment" target="_self"&gt;documentation&lt;/A&gt; provided, the understanding is that these fields/header needs to be present for the trace-log correlation to works.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snippet.png" style="width: 822px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28164iC142A02041C55B6F/image-dimensions/822x60?v=v2" width="822" height="60" role="button" title="Snippet.png" alt="Snippet.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But then what I see in customer environment isn’t that.&lt;/P&gt;&lt;P&gt;&lt;U&gt;As you can see below:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the trace highlighted has logs for it when I open with 'open logs of this trace'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AtFirst.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28165i007FCF2B357F2487/image-size/large?v=v2&amp;amp;px=999" role="button" title="AtFirst.png" alt="AtFirst.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Since this correlation works, so by right there should be values in either of these 3 fields: dt.trace.id, dt.span.id, dt.trace_sampled.&lt;/P&gt;&lt;P&gt;But then when I add these 3 fields to the query, they are all null!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ButThen.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28166i3327548253CF98F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="ButThen.png" alt="ButThen.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So right now I really don’t know how all this works actually. (And if the 3 fields aren’t necessary for the correlation to work then &lt;STRONG&gt;I’ll be very curious on what basis the Dynatrace Support revert to us that the correlation doesn’t work because there 3 fields are null&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wai Keat&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 03:49:00 GMT</pubDate>
    <dc:creator>waikeat_chan</dc:creator>
    <dc:date>2025-05-23T03:49:00Z</dc:date>
    <item>
      <title>Logs is correlated to traces despite dt.span_id, dt.trace_id, dt.trace_sampled are absent</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Logs-is-correlated-to-traces-despite-dt-span-id-dt-trace-id-dt/m-p/277883#M1338</link>
      <description>&lt;P&gt;I have open a ticket to Dynatrace about why traces don’t have log.&lt;/P&gt;&lt;P&gt;Then based on the &lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-enrichment" target="_self"&gt;documentation&lt;/A&gt; provided, the understanding is that these fields/header needs to be present for the trace-log correlation to works.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snippet.png" style="width: 822px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28164iC142A02041C55B6F/image-dimensions/822x60?v=v2" width="822" height="60" role="button" title="Snippet.png" alt="Snippet.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But then what I see in customer environment isn’t that.&lt;/P&gt;&lt;P&gt;&lt;U&gt;As you can see below:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the trace highlighted has logs for it when I open with 'open logs of this trace'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AtFirst.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28165i007FCF2B357F2487/image-size/large?v=v2&amp;amp;px=999" role="button" title="AtFirst.png" alt="AtFirst.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Since this correlation works, so by right there should be values in either of these 3 fields: dt.trace.id, dt.span.id, dt.trace_sampled.&lt;/P&gt;&lt;P&gt;But then when I add these 3 fields to the query, they are all null!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ButThen.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28166i3327548253CF98F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="ButThen.png" alt="ButThen.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So right now I really don’t know how all this works actually. (And if the 3 fields aren’t necessary for the correlation to work then &lt;STRONG&gt;I’ll be very curious on what basis the Dynatrace Support revert to us that the correlation doesn’t work because there 3 fields are null&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wai Keat&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 03:49:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Logs-is-correlated-to-traces-despite-dt-span-id-dt-trace-id-dt/m-p/277883#M1338</guid>
      <dc:creator>waikeat_chan</dc:creator>
      <dc:date>2025-05-23T03:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logs is correlated to traces despite dt.span_id, dt.trace_id, dt.trace_sampled are absent</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Logs-is-correlated-to-traces-despite-dt-span-id-dt-trace-id-dt/m-p/277941#M1339</link>
      <description>&lt;P&gt;I believe the field name is actually 'trace_id' rather than 'dt.trace_id'. From what I can tell, the reference in the documentation to the fields with the dt. prefix may be out of date from before Grail was GA. The current semantic dictionary &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/semantic-dictionary/model/log#logs" target="_self"&gt;entry&lt;/A&gt; for logs confirms that the field name is now 'trace_id'.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 21:30:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Logs-is-correlated-to-traces-despite-dt-span-id-dt-trace-id-dt/m-p/277941#M1339</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-05-23T21:30:48Z</dc:date>
    </item>
  </channel>
</rss>

