<?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 Retrieve problems via DQL in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Retrieve-problems-via-DQL/m-p/276377#M1633</link>
    <description>&lt;P&gt;Just a quick tip that you can retrieve problems via DQL:&lt;/P&gt;
&lt;P&gt;Here I'm filtering for problems that have been created in the last 30mins which contain `Critical Redis connection error!` in the title.&lt;/P&gt;
&lt;PRE&gt;fetch events, from: now()-30m, to: now()&lt;BR /&gt;| filter event.kind == "DAVIS_PROBLEM"&lt;BR /&gt;| filter event.status_transition == "CREATED"&lt;BR /&gt;| filter matchesPhrase(event.name, "Critical Redis connection error!")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;you can also do this in workflow tasks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import { queryExecutionClient } from "@dynatrace-sdk/client-query";

const data = await queryExecutionClient.queryExecute({
&amp;nbsp; body: {
&amp;nbsp; query: 'fetch events, from: now()-30m, to: now() | filter event.kind == "DAVIS_PROBLEM" | filter event.status_transition == "CREATED" | filter matchesPhrase(event.name, "Critical Redis connection error!")',
&amp;nbsp; },
});&lt;/PRE&gt;</description>
    <pubDate>Wed, 28 May 2025 08:28:03 GMT</pubDate>
    <dc:creator>adam_gardner</dc:creator>
    <dc:date>2025-05-28T08:28:03Z</dc:date>
    <item>
      <title>Retrieve problems via DQL</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Retrieve-problems-via-DQL/m-p/276377#M1633</link>
      <description>&lt;P&gt;Just a quick tip that you can retrieve problems via DQL:&lt;/P&gt;
&lt;P&gt;Here I'm filtering for problems that have been created in the last 30mins which contain `Critical Redis connection error!` in the title.&lt;/P&gt;
&lt;PRE&gt;fetch events, from: now()-30m, to: now()&lt;BR /&gt;| filter event.kind == "DAVIS_PROBLEM"&lt;BR /&gt;| filter event.status_transition == "CREATED"&lt;BR /&gt;| filter matchesPhrase(event.name, "Critical Redis connection error!")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;you can also do this in workflow tasks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import { queryExecutionClient } from "@dynatrace-sdk/client-query";

const data = await queryExecutionClient.queryExecute({
&amp;nbsp; body: {
&amp;nbsp; query: 'fetch events, from: now()-30m, to: now() | filter event.kind == "DAVIS_PROBLEM" | filter event.status_transition == "CREATED" | filter matchesPhrase(event.name, "Critical Redis connection error!")',
&amp;nbsp; },
});&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 May 2025 08:28:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Retrieve-problems-via-DQL/m-p/276377#M1633</guid>
      <dc:creator>adam_gardner</dc:creator>
      <dc:date>2025-05-28T08:28:03Z</dc:date>
    </item>
  </channel>
</rss>

