<?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 Re: Compare a column from 2 different executions of the same query capture value of any new ones in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Compare-Columns-Across-Multiple-Query-Executions-Using-DQL/m-p/265262#M1534</link>
    <description>&lt;P&gt;Think maybe more than one way to do this, looking for the simplest, think if it ingests logs every 5min, I could compare the Id column from one execution to another and grab any unique ones. OR could make one DQL query that compares logs from the different times (now and -5min) but not having luck finding any examples of what I want to do.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2024 15:16:14 GMT</pubDate>
    <dc:creator>rseibert1</dc:creator>
    <dc:date>2024-12-13T15:16:14Z</dc:date>
    <item>
      <title>Compare Columns Across Multiple Query Executions Using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Compare-Columns-Across-Multiple-Query-Executions-Using-DQL/m-p/264868#M1518</link>
      <description>&lt;P&gt;I have a workflow that has the below DQL task, I want to run and compare executions of this and create a list (of new unhealthy workers).&lt;/P&gt;
&lt;P&gt;fetch logs&lt;BR /&gt;| filter contains(log.tag, "octopus_workers")&lt;BR /&gt;| parse content, "JSON:json"&lt;BR /&gt;| fieldsFlatten json&lt;BR /&gt;| expand json.content&lt;BR /&gt;| fieldsFlatten json.content&lt;BR /&gt;| expand json.content.alertText&lt;BR /&gt;| fieldsFlatten json.content.alertText&lt;BR /&gt;| fields timestamp, Id=json.content.alertText.Id&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The table looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rseibert1_0-1733824360988.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25142i42D11CF759D50DEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rseibert1_0-1733824360988.png" alt="rseibert1_0-1733824360988.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The timestamps are only currently ever 12hrs, (via the task that ingests the logs) but I will eventually ingest logs&amp;nbsp; every 5min from workflow.&lt;/P&gt;
&lt;P&gt;So the ability to compare Id's from previous 5min and capture Ids that are recently added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:53:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Compare-Columns-Across-Multiple-Query-Executions-Using-DQL/m-p/264868#M1518</guid>
      <dc:creator>rseibert1</dc:creator>
      <dc:date>2025-12-18T12:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a column from 2 different executions of the same query capture value of any new ones</title>
      <link>https://community.dynatrace.com/t5/DQL/Compare-Columns-Across-Multiple-Query-Executions-Using-DQL/m-p/265262#M1534</link>
      <description>&lt;P&gt;Think maybe more than one way to do this, looking for the simplest, think if it ingests logs every 5min, I could compare the Id column from one execution to another and grab any unique ones. OR could make one DQL query that compares logs from the different times (now and -5min) but not having luck finding any examples of what I want to do.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 15:16:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Compare-Columns-Across-Multiple-Query-Executions-Using-DQL/m-p/265262#M1534</guid>
      <dc:creator>rseibert1</dc:creator>
      <dc:date>2024-12-13T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a column from 2 different executions of the same query capture value of any new ones</title>
      <link>https://community.dynatrace.com/t5/DQL/Compare-Columns-Across-Multiple-Query-Executions-Using-DQL/m-p/291828#M2941</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/77155"&gt;@rseibert1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know what works best for you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:52:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Compare-Columns-Across-Multiple-Query-Executions-Using-DQL/m-p/291828#M2941</guid>
      <dc:creator>IzabelaRokita</dc:creator>
      <dc:date>2025-12-18T12:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Columns Across Multiple Query Executions Using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Compare-Columns-Across-Multiple-Query-Executions-Using-DQL/m-p/291839#M2948</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;You can do it in one DQL query by splitting the last 10 minutes into two windows (current 5m vs previous 5m) and returning only IDs that appear in the current window but not in the previous one.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter contains(log.tag, "octopus_workers")
| filter timestamp &amp;gt;= now() - 10m
| parse content, "JSON:json"
| expand json.content
| expand json.content.alertText
| fields ts = timestamp, Id = json.content.alertText.Id
| fieldsAdd window = if(ts &amp;gt;= now() - 5m, "curr", else: "prev")
| summarize
    in_curr    = sum(if(window == "curr", 1, else: 0)),
    in_prev    = sum(if(window == "prev", 1, else: 0)),
    first_seen = min(ts),
    last_seen  = max(ts),
    by:{Id}
| filter in_curr &amp;gt; 0 and in_prev == 0
| fields Id, first_seen, last_seen
| sort last_seen desc&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Dec 2025 14:03:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Compare-Columns-Across-Multiple-Query-Executions-Using-DQL/m-p/291839#M2948</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-12-18T14:03:28Z</dc:date>
    </item>
  </channel>
</rss>

