<?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 DQL Query joining Logs on Spans not Returning Results in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-Query-joining-Logs-on-Spans-not-Returning-Results/m-p/275128#M1945</link>
    <description>&lt;P&gt;I am trying to find all logs for traces with a certain name using DQL. I discovered in notebooks that spans has the name I am looking for in a column called&amp;nbsp;&lt;STRONG&gt;endpoint.name&amp;nbsp;&lt;/STRONG&gt;as such, I believed the below query would work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;fetch logs
|join [
fetch spans 
|filter contains(endpoint.name, "INSERT_TRACE_NAME_HERE")
],
    on: { left[trace_id] == right[trace.id] }&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Unfortunately, this query returns no results. I confirmed the subquery returns results for my desired endpoint name and the super query returns the logs I am looking for if I filter for one of the trace id's returned in the subquery.&amp;nbsp; Anyone know what I'm doing wrong here? Please let me know if you need any more information.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Apr 2025 06:48:26 GMT</pubDate>
    <dc:creator>GPtheSQL</dc:creator>
    <dc:date>2025-04-15T06:48:26Z</dc:date>
    <item>
      <title>DQL Query joining Logs on Spans not Returning Results</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Query-joining-Logs-on-Spans-not-Returning-Results/m-p/275128#M1945</link>
      <description>&lt;P&gt;I am trying to find all logs for traces with a certain name using DQL. I discovered in notebooks that spans has the name I am looking for in a column called&amp;nbsp;&lt;STRONG&gt;endpoint.name&amp;nbsp;&lt;/STRONG&gt;as such, I believed the below query would work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;fetch logs
|join [
fetch spans 
|filter contains(endpoint.name, "INSERT_TRACE_NAME_HERE")
],
    on: { left[trace_id] == right[trace.id] }&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Unfortunately, this query returns no results. I confirmed the subquery returns results for my desired endpoint name and the super query returns the logs I am looking for if I filter for one of the trace id's returned in the subquery.&amp;nbsp; Anyone know what I'm doing wrong here? Please let me know if you need any more information.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 06:48:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Query-joining-Logs-on-Spans-not-Returning-Results/m-p/275128#M1945</guid>
      <dc:creator>GPtheSQL</dc:creator>
      <dc:date>2025-04-15T06:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Query joining Logs on Spans not Returning Results</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Query-joining-Logs-on-Spans-not-Returning-Results/m-p/275406#M1952</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;the trace.id is a UID and the trace_id is a string, you need to convert it (or the trace_id to UID or the trace.id to String)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yanezza_0-1744886977321.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27593iC38732BEF868FDDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yanezza_0-1744886977321.png" alt="yanezza_0-1744886977321.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 10:49:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Query-joining-Logs-on-Spans-not-Returning-Results/m-p/275406#M1952</guid>
      <dc:creator>yanezza</dc:creator>
      <dc:date>2025-04-17T10:49:50Z</dc:date>
    </item>
  </channel>
</rss>

