<?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: Grail DQL in Log Events Extraction in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Grail-DQL-in-Log-Events-Extraction/m-p/247350#M938</link>
    <description>&lt;P&gt;You can only use a &lt;A href="https://docs.dynatrace.com/docs/observe-and-explore/logs/lma-log-processing-matcher" target="_self"&gt;subset of DQL&lt;/A&gt; (I don't think you can use toDouble, etc...). Maybe you can use the new &lt;A href="https://docs.dynatrace.com/docs/platform/davis-ai/anomaly-detection/anomaly-detection-app" target="_self"&gt;Davis Anomaly detector&lt;/A&gt; to create a query that queries logs, makes a timeseries and triggers a David event when the vaue exceeds a static or dinamic threshold?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 15:08:51 GMT</pubDate>
    <dc:creator>FranciscoGarcia</dc:creator>
    <dc:date>2024-06-04T15:08:51Z</dc:date>
    <item>
      <title>Grail DQL in Log Events Extraction</title>
      <link>https://community.dynatrace.com/t5/DQL/Grail-DQL-in-Log-Events-Extraction/m-p/247243#M936</link>
      <description>&lt;P&gt;I'm in a bit of an dead end : since migrating to Grail the "language" used in the log query of Event Extraction is said to be DQL.&lt;/P&gt;
&lt;P&gt;One would assume that we could refine the query in Logs &amp;amp; Events advanced mode then copy/paste it in the Log Query field of Event Extraction, like in the good old time of Log Classic.&lt;/P&gt;
&lt;P&gt;But it is not as straightforward as before. The form can not be validated without extensive editing of the query.&lt;/P&gt;
&lt;P&gt;It seems that the DQL for Event Extraction is a very limited subset of the "real" DQL.&lt;/P&gt;
&lt;P&gt;Anyone would have an idea on how to have the following query working in Event Extraction ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;fetch logs
| filter matchesValue(log.source, "frontend")
| filter matchesValue(type, "secu")
| filterOut  contains(httpmessage.host, "foo.bar")
| filter toDouble(userriskdata.score) &amp;gt;= 90
| filter matchesValue(attackdata.rules, "USER-RISK-AGGRESSIVE")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation is a bit lacking on this subject, so far I guessed that "fetch logs" and the "| filter" keywords should be removed. That leave something like this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;matchesValue(log.source, "frontend")
AND matchesValue(type, "secu")
AND NOT  contains(httpmessage.host, "foo.bar")
AND toDouble(userriskdata.score) &amp;gt;= 90
AND matchesValue(attackdata.rules, "USER-RISK-AGGRESSIVE")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is still not valid: "&amp;gt;", "contains" and "toDouble" are not recognized.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 07:18:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Grail-DQL-in-Log-Events-Extraction/m-p/247243#M936</guid>
      <dc:creator>Aymeric_M</dc:creator>
      <dc:date>2024-06-06T07:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Grail DQL in Log Events Extraction</title>
      <link>https://community.dynatrace.com/t5/DQL/Grail-DQL-in-Log-Events-Extraction/m-p/247350#M938</link>
      <description>&lt;P&gt;You can only use a &lt;A href="https://docs.dynatrace.com/docs/observe-and-explore/logs/lma-log-processing-matcher" target="_self"&gt;subset of DQL&lt;/A&gt; (I don't think you can use toDouble, etc...). Maybe you can use the new &lt;A href="https://docs.dynatrace.com/docs/platform/davis-ai/anomaly-detection/anomaly-detection-app" target="_self"&gt;Davis Anomaly detector&lt;/A&gt; to create a query that queries logs, makes a timeseries and triggers a David event when the vaue exceeds a static or dinamic threshold?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 15:08:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Grail-DQL-in-Log-Events-Extraction/m-p/247350#M938</guid>
      <dc:creator>FranciscoGarcia</dc:creator>
      <dc:date>2024-06-04T15:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Grail DQL in Log Events Extraction</title>
      <link>https://community.dynatrace.com/t5/DQL/Grail-DQL-in-Log-Events-Extraction/m-p/247464#M945</link>
      <description>&lt;P&gt;Thanks for the link to the matcher documentation. I had forgotten about it. I'll look into Davis Anomaly Detecto. In the mean time I'll try to work around contains and &amp;gt; with matchesPhrase.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 15:01:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Grail-DQL-in-Log-Events-Extraction/m-p/247464#M945</guid>
      <dc:creator>Aymeric_M</dc:creator>
      <dc:date>2024-06-05T15:01:08Z</dc:date>
    </item>
  </channel>
</rss>

