<?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: Fetch Problems and Sort by Application in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269370#M1674</link>
    <description>&lt;P&gt;Heya,&lt;BR /&gt;You can filter by entity_ids like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| expand affected_entity_ids
| summarize count(), by: affected_entity_ids&lt;/LI-CODE&gt;&lt;P&gt;however, if you want application names instead of ids then it would be complex one as the DQL will only allow fetching entities by their type and get their name like you can get an application name by using a query like this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.application
| filter id == "APPLICATION-&amp;lt;ALPHA-NUMERIC-ID&amp;gt;"
| fields entity.name&lt;/LI-CODE&gt;&lt;P&gt;Since you mentioned you are using dashboard itself, I'd suggest use the query1 as a variable and write a JS code that would fetch the entity.name by the entity id.&lt;BR /&gt;&lt;BR /&gt;Refer this on how you can write JS code&amp;nbsp;&lt;A href="https://developer.dynatrace.com/develop/sdks/client-query/" target="_blank"&gt;DQL Query | Dynatrace Developer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps..&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Maheedhar.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 04:18:49 GMT</pubDate>
    <dc:creator>Maheedhar_T</dc:creator>
    <dc:date>2025-02-06T04:18:49Z</dc:date>
    <item>
      <title>Fetch and Sort Problems by Application Using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269235#M1671</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;I have a dashboard where I want to fetch all the active problems and group the problems together by application. Then, using a variable that sorts through applications, I want to use that variable as a multi-select filter.&lt;/P&gt;
&lt;P&gt;However, when I fetch active problems, I don't see any category that groups together problems by application. I see options to group by alerting_profile, display_id, affected_entity_id, etc..., but nothing to group by app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sjena7810_0-1738681098867.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26189i14AC470EB4C0005D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sjena7810_0-1738681098867.png" alt="sjena7810_0-1738681098867.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Is there any way to sort through the list of active problems and group them together by application?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 12:37:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269235#M1671</guid>
      <dc:creator>sjena7810</dc:creator>
      <dc:date>2025-12-18T12:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch Problems and Sort by Application</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269258#M1672</link>
      <description>&lt;P&gt;Just to clarify, what do you mean by application? Do you mean Dynatrace Application (RUM)? If you mean RUM app you could try something like this:&lt;BR /&gt;&lt;BR /&gt;fetch dt.davis.problems&lt;BR /&gt;| expand affected_entity_types&lt;BR /&gt;| filter affected_entity_types == "dt.entity.application"&lt;BR /&gt;| dedup display_id&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To get all of the problems related to your DT RUM applications&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 19:23:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269258#M1672</guid>
      <dc:creator>DavidRitter</dc:creator>
      <dc:date>2025-02-04T19:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch Problems and Sort by Application</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269359#M1673</link>
      <description>&lt;P&gt;Hey, thanks for the response David.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By "application", I mean the applications at our firm that we have OneAgent installed on (Salesforce, Docusign, etc...).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the total number of problems per application (or even management zone). However, when I fetch Davis problems, I don't see any options (columns) that allow me to filter by application (or anything even remotely close).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;| fetch dt.davis.problems

| expand affected_entity_types&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this, none of the columns signify the application that the problem occurs on. When I run your DQL query, I don't see the actual names of apps, just whether or not the problem occurred on an application, host, server, etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 19:43:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269359#M1673</guid>
      <dc:creator>sjena7810</dc:creator>
      <dc:date>2025-02-05T19:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch Problems and Sort by Application</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269370#M1674</link>
      <description>&lt;P&gt;Heya,&lt;BR /&gt;You can filter by entity_ids like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.davis.problems
| expand affected_entity_ids
| summarize count(), by: affected_entity_ids&lt;/LI-CODE&gt;&lt;P&gt;however, if you want application names instead of ids then it would be complex one as the DQL will only allow fetching entities by their type and get their name like you can get an application name by using a query like this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.application
| filter id == "APPLICATION-&amp;lt;ALPHA-NUMERIC-ID&amp;gt;"
| fields entity.name&lt;/LI-CODE&gt;&lt;P&gt;Since you mentioned you are using dashboard itself, I'd suggest use the query1 as a variable and write a JS code that would fetch the entity.name by the entity id.&lt;BR /&gt;&lt;BR /&gt;Refer this on how you can write JS code&amp;nbsp;&lt;A href="https://developer.dynatrace.com/develop/sdks/client-query/" target="_blank"&gt;DQL Query | Dynatrace Developer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps..&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Maheedhar.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 04:18:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269370#M1674</guid>
      <dc:creator>Maheedhar_T</dc:creator>
      <dc:date>2025-02-06T04:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch Problems and Sort by Application</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269511#M1681</link>
      <description>&lt;P&gt;Hi Maheedhar, thanks for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you say:&lt;/P&gt;&lt;PRE&gt;| filter id == "APPLICATION-&amp;lt;ALPHA-NUMERIC-ID&amp;gt;"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;What does ALPHA-NUMERIC-ID refer to? Is that the display ID of the problem? Like, P-12345?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 14:36:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-and-Sort-Problems-by-Application-Using-DQL/m-p/269511#M1681</guid>
      <dc:creator>sjena7810</dc:creator>
      <dc:date>2025-02-07T14:36:27Z</dc:date>
    </item>
  </channel>
</rss>

