<?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: DQL Query Group by Every 2 Hour in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-Query-Group-by-Every-2-Hour/m-p/225372#M298</link>
    <description>&lt;P&gt;You can try the &lt;STRONG&gt;bin&lt;/STRONG&gt; function:&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#bin" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/dql-functions#bin&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch logs , scanLimitGBytes: -1
|filter isNotNull(elapsed_time)
|summarize elapsed = round(avg(toDouble(elapsed_time)),decimals:3), by:{ bin(timestamp, 2h) }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 17:40:24 GMT</pubDate>
    <dc:creator>Tiit_Hallas</dc:creator>
    <dc:date>2023-10-13T17:40:24Z</dc:date>
    <item>
      <title>DQL Query Group by Every 2 Hour</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Query-Group-by-Every-2-Hour/m-p/225368#M297</link>
      <description>&lt;DIV class=""&gt;Hello eveyone!&lt;BR /&gt;I'm having the DQL statement prepare for customer. currently, they have summarized by every timestamp of the log. Is there a way to group it by every 2-3 hours?&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;fetch logs , scanLimitGBytes: -1&lt;BR /&gt;|filter isNotNull(elapsed_time)&lt;BR /&gt;|summarize elapsed = round(avg(toDouble(elapsed_time)),decimals:3), by:{timestamp }&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 16:14:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Query-Group-by-Every-2-Hour/m-p/225368#M297</guid>
      <dc:creator>bddang</dc:creator>
      <dc:date>2023-10-13T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Query Group by Every 2 Hour</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Query-Group-by-Every-2-Hour/m-p/225372#M298</link>
      <description>&lt;P&gt;You can try the &lt;STRONG&gt;bin&lt;/STRONG&gt; function:&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/dql-functions#bin" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/dql-functions#bin&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch logs , scanLimitGBytes: -1
|filter isNotNull(elapsed_time)
|summarize elapsed = round(avg(toDouble(elapsed_time)),decimals:3), by:{ bin(timestamp, 2h) }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 17:40:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Query-Group-by-Every-2-Hour/m-p/225372#M298</guid>
      <dc:creator>Tiit_Hallas</dc:creator>
      <dc:date>2023-10-13T17:40:24Z</dc:date>
    </item>
  </channel>
</rss>

