<?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 Dashboard Grails query vs Notebook Grails query - different results in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Dashboard-Grails-query-vs-Notebook-Grails-query-different/m-p/220847#M205</link>
    <description>&lt;P&gt;I have been developing the following query in a Notebook which seems to provide me accurate results&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;fetch logs, from: bin(now()-6d, 1d) + 23h + 0m, to: now()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| filter matchesValue(aws.log_group, "Prod-mop-service-order-int") and matchesPhrase(content, "HTTP_INBOUND") and matchesPhrase(content, "/api/mopServiceOrder") and matchesPhrase(content, "ABC LTD")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fieldsAdd Date= formatTimestamp(timestamp,format:"dd/MM/YYYY")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| summarize Count = count(), by:{Date}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| sort Date desc&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;this provides the following correct output&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="garryclarke_0-1692205308186.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13637iFAF1BD97B0B3E7FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="garryclarke_0-1692205308186.png" alt="garryclarke_0-1692205308186.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However when I drop the same query onto a Dashboard as a Grails query I get the following result set which is incorrect&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="garryclarke_1-1692205384535.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13638iF9EE22C7884FC175/image-size/medium?v=v2&amp;amp;px=400" role="button" title="garryclarke_1-1692205384535.png" alt="garryclarke_1-1692205384535.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The problem seems to be that&amp;nbsp;&lt;EM&gt;formatTimestamp(timestamp,format:"dd/MM/YYYY") seems to be working correctly in Notebook but not on a Dashboard. The issue seems to be with events with a timestamp up to 1hr after the midnight boundary getting allocated to the previous day.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Notebook&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="garryclarke_2-1692207130470.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13639i18F0D4937B8A6A5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="garryclarke_2-1692207130470.png" alt="garryclarke_2-1692207130470.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;Dashboard&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="garryclarke_3-1692207327206.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13640iF16CBFB6E29AF13F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="garryclarke_3-1692207327206.png" alt="garryclarke_3-1692207327206.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This would seem to attribute to difference between 806 and 840&lt;/P&gt;
&lt;P&gt;Any ideas how this would be functioning differently on a dashboard?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2023 06:55:51 GMT</pubDate>
    <dc:creator>garryclarke</dc:creator>
    <dc:date>2023-08-17T06:55:51Z</dc:date>
    <item>
      <title>Dashboard Grails query vs Notebook Grails query - different results</title>
      <link>https://community.dynatrace.com/t5/DQL/Dashboard-Grails-query-vs-Notebook-Grails-query-different/m-p/220847#M205</link>
      <description>&lt;P&gt;I have been developing the following query in a Notebook which seems to provide me accurate results&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;fetch logs, from: bin(now()-6d, 1d) + 23h + 0m, to: now()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| filter matchesValue(aws.log_group, "Prod-mop-service-order-int") and matchesPhrase(content, "HTTP_INBOUND") and matchesPhrase(content, "/api/mopServiceOrder") and matchesPhrase(content, "ABC LTD")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fieldsAdd Date= formatTimestamp(timestamp,format:"dd/MM/YYYY")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| summarize Count = count(), by:{Date}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| sort Date desc&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;this provides the following correct output&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="garryclarke_0-1692205308186.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13637iFAF1BD97B0B3E7FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="garryclarke_0-1692205308186.png" alt="garryclarke_0-1692205308186.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However when I drop the same query onto a Dashboard as a Grails query I get the following result set which is incorrect&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="garryclarke_1-1692205384535.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13638iF9EE22C7884FC175/image-size/medium?v=v2&amp;amp;px=400" role="button" title="garryclarke_1-1692205384535.png" alt="garryclarke_1-1692205384535.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The problem seems to be that&amp;nbsp;&lt;EM&gt;formatTimestamp(timestamp,format:"dd/MM/YYYY") seems to be working correctly in Notebook but not on a Dashboard. The issue seems to be with events with a timestamp up to 1hr after the midnight boundary getting allocated to the previous day.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Notebook&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="garryclarke_2-1692207130470.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13639i18F0D4937B8A6A5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="garryclarke_2-1692207130470.png" alt="garryclarke_2-1692207130470.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;Dashboard&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="garryclarke_3-1692207327206.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13640iF16CBFB6E29AF13F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="garryclarke_3-1692207327206.png" alt="garryclarke_3-1692207327206.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This would seem to attribute to difference between 806 and 840&lt;/P&gt;
&lt;P&gt;Any ideas how this would be functioning differently on a dashboard?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 06:55:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Dashboard-Grails-query-vs-Notebook-Grails-query-different/m-p/220847#M205</guid>
      <dc:creator>garryclarke</dc:creator>
      <dc:date>2023-08-17T06:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Grails query vs Notebook Grails query - different results</title>
      <link>https://community.dynatrace.com/t5/DQL/Dashboard-Grails-query-vs-Notebook-Grails-query-different/m-p/220885#M206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/42456"&gt;@garryclarke&lt;/a&gt;,&amp;nbsp;and thanks for your post. It looks like it's not something you can tweak on the dashboard itself, but rather a bug. It's reported and our engineers will look into it.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 08:21:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Dashboard-Grails-query-vs-Notebook-Grails-query-different/m-p/220885#M206</guid>
      <dc:creator>robaxelsen</dc:creator>
      <dc:date>2023-08-17T08:21:30Z</dc:date>
    </item>
  </channel>
</rss>

