<?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: Timeout executing a Grail DQL query from an ActiveGate using an HTTP call - Extension SDK in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292460#M38406</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It looks like the issue with the timeout executing the Grail DQL Query API is due to firewall.&lt;BR /&gt;The firewall rules for AGs did not include the &lt;EM&gt;&lt;STRONG&gt;apps&lt;/STRONG&gt;&lt;/EM&gt; (platform) endpoint, just the &lt;EM&gt;&lt;STRONG&gt;live&lt;/STRONG&gt;&lt;/EM&gt; (environment) endpoint.&lt;BR /&gt;The issue has been addressed.&lt;/P&gt;&lt;P&gt;Thank you for your consideration and inputs!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;BR /&gt;Chris&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jan 2026 19:48:17 GMT</pubDate>
    <dc:creator>chris_cho</dc:creator>
    <dc:date>2026-01-05T19:48:17Z</dc:date>
    <item>
      <title>Timeout executing a Grail DQL query from an ActiveGate using an HTTP call - Extension SDK</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292401#M38388</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am not sure why I am getting a timeout exception when &lt;STRONG&gt;I execute a DQL query from an ActiveGate&lt;/STRONG&gt; using the HTTP request&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X 'POST' 'https://{environmentid}.apps.dynatrace.com/platform/storage/query/v1/query:execute' \
-H 'accept: application/json' -H 'enforce-query-consumption-limit: false' \
-H 'Authorization: Bearer &amp;lt;platfom token&amp;gt;' \
-H 'Content-Type: application/json' \
-d '{
  "defaultTimeframeStart": "2026-01-01T00:00:00.000Z",
  "defaultTimeframeEnd": "2026-01-03T23:59:59.997Z",
  "includeTypes": false,
  "locale": "en_US",
  "query": "DQL_query",
  "requestTimeoutMilliseconds": 50,
  "timezone": "UTC"
}'&lt;/LI-CODE&gt;&lt;P&gt;The exception message is:&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;HTTPS://{environmentid}.apps.dynatrace.com', port=443): Read timed out.&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Executing&amp;nbsp; this HTTP request externally, or from Swagger, I am getting the expected data.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "state": "SUCCEEDED",
  "progress": 100,
  "result": {
    "records": [
      {
        "timestamp": "2026-01-03T08:00:27.437000000Z",
        . . .
      }
    ],
    "types": [],
    "metadata": {
      "grail": {
        "canonicalQuery": "fetch ... | limit 1",
        . . .
        "scannedRecords": 40692,
        . . .
        "analysisTimeframe": {
          "start": "2026-01-01T00:00:00.000000000Z",
          "end": "2026-01-03T23:59:59.997000000Z"
        },
        . . .
      }
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;Let me know if there are any restrictions from AGs regarding HTTP calls to Grail DQL queries and if there is any workaround.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2026 22:03:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292401#M38388</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2026-01-03T22:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Timeout executing a Grail DQL query from an ActiveGate using an HTTP call - Extension SDK</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292416#M38389</link>
      <description>&lt;P&gt;Most likely, there is a firewall in your environment, and your ActiveGate uses a&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/sgw-proxy-authentication" target="_blank"&gt;proxy&lt;/A&gt; or a &lt;A href="https://docs.dynatrace.com/docs/shortlink/activegate-reverse-proxy" target="_blank"&gt;reverse proxy&lt;/A&gt; for connecting to Dynatrace SaaS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2026 20:00:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292416#M38389</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2026-01-04T20:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timeout executing a Grail DQL query from an ActiveGate using an HTTP call - Extension SDK</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292417#M38390</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your reply, and taking your time considering my concern.&lt;BR /&gt;I will check in the morning with&amp;nbsp;the admin, these details you mentioned.&lt;/P&gt;&lt;P&gt;My main concern is &lt;U&gt;&lt;STRONG&gt;whether the ActiveGates can initiate an HTTP request, using platform token, executing Grail DQL queries, handled by an Extension SDK&lt;/STRONG&gt;&lt;/U&gt;.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 00:40:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292417#M38390</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2026-01-05T00:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Timeout executing a Grail DQL query from an ActiveGate using an HTTP call - Extension SDK</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292421#M38391</link>
      <description>&lt;P&gt;I assume you want to execute from an ActiveGate extension. There is actually nothing blocking your code with executing http requests.&lt;BR /&gt;&lt;BR /&gt;Btw - accessing Environment APIs is easy, since they are also exposed on the ActiveGate itself (use &lt;A href="https://community.dynatrace.com/" target="_blank"&gt;https://aghost:agport/e/&amp;lt;environmentid&amp;gt;&lt;/A&gt;&amp;nbsp;to access them, for example &lt;A href="https://localhost:9999/e/abc12345/api/v1/time" target="_blank"&gt;https://localhost:9999/e/abc12345/api/v1/time&lt;/A&gt;&amp;nbsp;(if your AG runs on standard 9999/tcp and don't forget AG have self-signed certs by default, unless you add your own one).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Unfortunately, platform APIs are not exposed on AG. What is your use case anyway to query Grail from the ActiveGate?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 08:09:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292421#M38391</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2026-01-05T08:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Timeout executing a Grail DQL query from an ActiveGate using an HTTP call - Extension SDK</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292449#M38401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your reply, which attest that "&lt;EM&gt;&lt;STRONG&gt;platform APIs&lt;/STRONG&gt; are not exposed on AG&lt;/EM&gt;". That means I cannot use any of the &lt;EM&gt;&lt;STRONG&gt;apps&lt;/STRONG&gt;&lt;/EM&gt; APIs, from&amp;nbsp;&lt;EM&gt;https://{environmentid}.&lt;STRONG&gt;apps&lt;/STRONG&gt;.dynatrace.com.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Indeed, I have access from AGs to environment APIs,&amp;nbsp;&lt;EM&gt;https://{environmentid}.&lt;STRONG&gt;live&lt;/STRONG&gt;.dynatrace.com&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;The use case is from a custom extension SDK to execute a DQL query, getting the &lt;STRONG&gt;latest&lt;/STRONG&gt; &lt;STRONG&gt;log&lt;/STRONG&gt; or &lt;STRONG&gt;bizevent&lt;/STRONG&gt; for a specific filter criteria.&lt;BR /&gt;The main idea is to store somewhere a the latest successful execution ingesting some data. I thought that BizEvents or Logs, would be the right place.&lt;BR /&gt;Would be any other alternative getting this data querying Logs or BizEvents, using Environment APIs?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 15:30:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292449#M38401</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2026-01-05T15:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timeout executing a Grail DQL query from an ActiveGate using an HTTP call - Extension SDK</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292452#M38402</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/84142"&gt;@chris_cho&lt;/a&gt;&amp;nbsp;I meant the API is not exposed by the ActiveGate itself. But you can still access the environment URL. ActiveGate does not block it.&lt;BR /&gt;&lt;BR /&gt;If you run an ActiveGate, it listens on 9999/tcp port for communication (unless customized). This https endpoint also exposes Dynatrace Environment API -&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/env-api" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/env-api&lt;/A&gt;&amp;nbsp;on that port. So you don't need to configure proxy or other means to access the API and the ActiveGate will pass the calls. There is no API for Grail query in the Environment API, it's part of the Platform API.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I do not know your use case in detail, but it sounds like &lt;A href="https://docs.dynatrace.com/docs/shortlink/workflows" target="_blank"&gt;workflows&lt;/A&gt; would be much easier to handle this task, and those run within the Dynatrace cluster itself, which is "close" to the Grail data. Workflows can also access other http endpoints - even onpremises.&lt;BR /&gt;&lt;BR /&gt;Do you just want to store some state of the extension? Grail is probably not the best place for that.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 16:13:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292452#M38402</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2026-01-05T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timeout executing a Grail DQL query from an ActiveGate using an HTTP call - Extension SDK</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292457#M38405</link>
      <description>&lt;P&gt;I built a generic custom extension using Python Extension SDK, that supposed to be used and configured by other teams through its UI. That's why workflows may not be suitable for this initiative.&lt;BR /&gt;I was thinking to use workflows specifically executing dynamic DQL queries which include specific filter criteria based on different feeds.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 18:10:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292457#M38405</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2026-01-05T18:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Timeout executing a Grail DQL query from an ActiveGate using an HTTP call - Extension SDK</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292460#M38406</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It looks like the issue with the timeout executing the Grail DQL Query API is due to firewall.&lt;BR /&gt;The firewall rules for AGs did not include the &lt;EM&gt;&lt;STRONG&gt;apps&lt;/STRONG&gt;&lt;/EM&gt; (platform) endpoint, just the &lt;EM&gt;&lt;STRONG&gt;live&lt;/STRONG&gt;&lt;/EM&gt; (environment) endpoint.&lt;BR /&gt;The issue has been addressed.&lt;/P&gt;&lt;P&gt;Thank you for your consideration and inputs!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;BR /&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 19:48:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Timeout-executing-a-Grail-DQL-query-from-an-ActiveGate-using-an/m-p/292460#M38406</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2026-01-05T19:48:17Z</dc:date>
    </item>
  </channel>
</rss>

