<?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: dataexplorer advance query  mode in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282034#M2357</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;To achieve this behavior in Data Explorer's advanced mode, you can use the metric selector syntax and transformations available in the Classic Metrics API. However, Data Explorer does not support all DQL features directly in advanced mode. Here's how you can approximate the behavior:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Metric Selector&lt;/STRONG&gt;: Use the metric key&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;builtin:host.memory.usage&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to query memory usage.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Split By&lt;/STRONG&gt;: Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;splitBy("dt.entity.host")&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to group by host.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Aggregation&lt;/STRONG&gt;: Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;max&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to calculate the maximum memory usage.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Filter&lt;/STRONG&gt;: Unfortunately, advanced mode does not support filtering based on aggregated values like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;arrayMax. You would need to apply this filter manually after exporting the data or use DQL in Notebooks or Dashboards for this functionality.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Interval&lt;/STRONG&gt;: Set the interval to 30 minutes in the visualization settings.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Timeframe&lt;/STRONG&gt;: Set the timeframe to the last 24 hours in the Data Explorer UI.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;Example Metric Selector:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;builtin:host.memory.usage:splitBy("dt.entity.host"):max&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;This will give you the maximum memory usage per host. To filter and add the host name, you would need to use DQL in Notebooks or Dashboards.&lt;BR /&gt;&lt;BR /&gt;So to accomplish this you would need to use DQL:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;timeseries by:{dt.entity.host}, interval:30m, from:now() - 24h, maxMemory = max(dt.host.memory.usage)
| filter arrayMax(maxMemory) &amp;gt; 40
| fieldsAdd hostName = dt.entity.host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Execute this query on DQL and you will get what you are looking for, Does this satisfy your need? I will keep searching if we can accomplish this through Data Explorer.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2025 12:04:51 GMT</pubDate>
    <dc:creator>Emm4nuel</dc:creator>
    <dc:date>2025-07-22T12:04:51Z</dc:date>
    <item>
      <title>Data Explorer advance query mode</title>
      <link>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282021#M2355</link>
      <description>&lt;P&gt;I want to extract the hostname that has exceeded 40% memory max in a 30-minute interval in the last 24 hours. How can we achieve this via a nested query, filter the series value to max (40)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 12:06:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282021#M2355</guid>
      <dc:creator>Vijayt</dc:creator>
      <dc:date>2025-07-22T12:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: dataexplorer advance query  mode</title>
      <link>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282034#M2357</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;To achieve this behavior in Data Explorer's advanced mode, you can use the metric selector syntax and transformations available in the Classic Metrics API. However, Data Explorer does not support all DQL features directly in advanced mode. Here's how you can approximate the behavior:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Metric Selector&lt;/STRONG&gt;: Use the metric key&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;builtin:host.memory.usage&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to query memory usage.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Split By&lt;/STRONG&gt;: Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;splitBy("dt.entity.host")&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to group by host.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Aggregation&lt;/STRONG&gt;: Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;max&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to calculate the maximum memory usage.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Filter&lt;/STRONG&gt;: Unfortunately, advanced mode does not support filtering based on aggregated values like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;arrayMax. You would need to apply this filter manually after exporting the data or use DQL in Notebooks or Dashboards for this functionality.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Interval&lt;/STRONG&gt;: Set the interval to 30 minutes in the visualization settings.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Timeframe&lt;/STRONG&gt;: Set the timeframe to the last 24 hours in the Data Explorer UI.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;Example Metric Selector:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;builtin:host.memory.usage:splitBy("dt.entity.host"):max&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;This will give you the maximum memory usage per host. To filter and add the host name, you would need to use DQL in Notebooks or Dashboards.&lt;BR /&gt;&lt;BR /&gt;So to accomplish this you would need to use DQL:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;timeseries by:{dt.entity.host}, interval:30m, from:now() - 24h, maxMemory = max(dt.host.memory.usage)
| filter arrayMax(maxMemory) &amp;gt; 40
| fieldsAdd hostName = dt.entity.host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Execute this query on DQL and you will get what you are looking for, Does this satisfy your need? I will keep searching if we can accomplish this through Data Explorer.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 12:04:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282034#M2357</guid>
      <dc:creator>Emm4nuel</dc:creator>
      <dc:date>2025-07-22T12:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: dataexplorer advance query  mode</title>
      <link>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282052#M2361</link>
      <description>&lt;P&gt;unfortunately we have only access to dashboard classic. can it be achieved by nested query . i have seen already but forgot the syntax&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 12:50:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282052#M2361</guid>
      <dc:creator>Vijayt</dc:creator>
      <dc:date>2025-07-22T12:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: dataexplorer advance query  mode</title>
      <link>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282268#M2377</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/75656"&gt;@Vijayt&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You can control this using the min,max at the right side when you get that nested query in Data Explorer.&lt;BR /&gt;Query would still look like this only&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:host.mem.usage:splitBy("dt.entity.host"):sort(value(auto,descending))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Then from this we need to change the visualisation as highlighted in the below image.&lt;BR /&gt;Then you'll see only the hosts that are in that range.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Maheedhar_T_0-1753387941850.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29176i47116C21325D4658/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Maheedhar_T_0-1753387941850.png" alt="Maheedhar_T_0-1753387941850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/76275"&gt;@Maheedhar_T&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 20:12:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282268#M2377</guid>
      <dc:creator>Maheedhar_T</dc:creator>
      <dc:date>2025-07-24T20:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Explorer advance query mode</title>
      <link>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282292#M2378</link>
      <description>&lt;P&gt;If I got your question right, with Data Explorer (no DQL), I'd suggest the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:host.mem.usage
:max 
:partition("above40",value("yes",gt(40)),otherwise("no"))
:filter(eq("above40","yes"))
:splitBy("dt.entity.host")&lt;/LI-CODE&gt;&lt;P&gt;First select the maximum in the bucket interval (:max), then add a dimension to compare if it's over 40% (:partition) and afterward filter only those series where it's over (:filter) and split by host.&lt;BR /&gt;&lt;BR /&gt;If you need it in 30 minute buckets, you can select that option in Data Explorer.&lt;BR /&gt;&lt;BR /&gt;This is &lt;A href="https://wkf10640.live.dynatrace.com/ui/data-explorer?gtf=-24h&amp;amp;gf=all#eyJ2ZXJzaW9uIjoyLCJjb25maWciOnsiYm91bmRzIjp7fSwiY29uZmlndXJlZCI6ZmFsc2UsImVkaXRhYmxlIjp0cnVlLCJuYW1lIjoiRGF0YSBleHBsb3JlciByZXN1bHRzIiwidGlsZVR5cGUiOiJEQVRBX0VYUExPUkVSIiwiY3VzdG9tTmFtZSI6IkRhdGEgZXhwbG9yZXIgcmVzdWx0cyIsInF1ZXJpZXMiOlt7ImlkIjoiQSIsImVuYWJsZWQiOnRydWUsIm1ldHJpY1NlbGVjdG9yIjoiYnVpbHRpbjpob3N0Lm1lbS51c2FnZVxuOm1heCBcbjpwYXJ0aXRpb24oXCJhYm92ZTQwXCIsdmFsdWUoXCJ5ZXNcIixndCg0MCkpLG90aGVyd2lzZShcIm5vXCIpKVxuOmZpbHRlcih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bsp;&lt;BR /&gt;&lt;BR /&gt;A second option is filtering by series - in this case it returns hosts where maximum usage in the selected interval is over 40%:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:host.mem.usage
:auto
:filter(series(max,gt(40)))
:splitBy("dt.entity.host")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 10:48:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282292#M2378</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-07-25T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data Explorer advance query mode</title>
      <link>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282356#M2384</link>
      <description>&lt;P&gt;this works perfectly fine //builtin:host.cpu.user:max:partition("critical",value("1",gt(60)),otherwise("0"))&lt;BR /&gt;:filter(eq("above60","1")):splitBy("dt.entity.host"):count:sort(value(sum,descending))//&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one still shows &amp;lt;40 data points not sure why //&lt;/P&gt;&lt;P&gt;builtin:host.mem.usage:auto:filter(series(max,gt(40))):splitBy("dt.entity.host")//&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 08:10:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Data-Explorer-advance-query-mode/m-p/282356#M2384</guid>
      <dc:creator>Vijayt</dc:creator>
      <dc:date>2025-07-27T08:10:55Z</dc:date>
    </item>
  </channel>
</rss>

