<?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: Create Metric for DQL Query in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271889#M35926</link>
    <description>&lt;PRE&gt;&lt;SPAN class=""&gt;Hello, how are you? I have achieved it with metric extraction&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rguaram_0-1741366562531.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26840i49223777DE65A476/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rguaram_0-1741366562531.png" alt="rguaram_0-1741366562531.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rguaram_1-1741366671205.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26841iB22BE8C966F7102D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rguaram_1-1741366671205.png" alt="rguaram_1-1741366671205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;or also with workflow if the query is very complex&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rguaram_2-1741366753386.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26842i3ADB7066CE5F0800/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rguaram_2-1741366753386.png" alt="rguaram_2-1741366753386.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 16:59:28 GMT</pubDate>
    <dc:creator>rguaram</dc:creator>
    <dc:date>2025-03-07T16:59:28Z</dc:date>
    <item>
      <title>Create Metric for DQL Query</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271572#M35883</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Team,&lt;BR /&gt;We are looking to create a metric and configure an alert based on the count of logs generated from a specific source. The goal is to trigger an alert if the count value exceeds 500 or 1000.Could anyone suggest how we can set up this metric and configure the alert accordingly? Your assistance would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;| filter log.source =="/home/wtrovruns/bb/log/bb-ovo.log"&lt;BR /&gt;| summarize eventcount= count()&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 07:02:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271572#M35883</guid>
      <dc:creator>Vikas_g1997</dc:creator>
      <dc:date>2025-03-05T07:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create Metric for DQL Query</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271636#M35889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57336"&gt;@Vikas_g1997&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Try using Davis Anomaly Detector.&lt;BR /&gt;&lt;BR /&gt;And there you have to use query with makeTimeseries command. And put 500 or 1000 in the threshold value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="moin_DT1_0-1741194586250.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26803i15CFD37DFC2C0F92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="moin_DT1_0-1741194586250.png" alt="moin_DT1_0-1741194586250.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I never created a Metric event like this, but try creating yourself.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Moin&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 12:30:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271636#M35889</guid>
      <dc:creator>moin_DT1</dc:creator>
      <dc:date>2025-03-07T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create Metric for DQL Query</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271777#M35909</link>
      <description>&lt;P&gt;I believe the most straight-forward way to accomplish this would be to create a log metric to count these log entries. During the configuration, you will be asked to provide filter criteria which will ensure that only the relevant log entries are counted. Once the metric is created you will gain the ability to report and alert on the data just as you would with any other metric.&lt;/P&gt;&lt;P&gt;References:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-analysis/lma-log-metrics" target="_blank"&gt;https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-analysis/lma-log-metrics&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-openpipeline" target="_blank"&gt;https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-openpipeline&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 20:23:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271777#M35909</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-03-06T20:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create Metric for DQL Query</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271847#M35920</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/19769"&gt;@marco_irmer&lt;/a&gt;&amp;nbsp;Yes exactly, but i think he would like know, if using DQL its possible to create metric events?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 11:44:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271847#M35920</guid>
      <dc:creator>moin_DT1</dc:creator>
      <dc:date>2025-03-17T11:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create Metric for DQL Query</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271889#M35926</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;Hello, how are you? I have achieved it with metric extraction&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rguaram_0-1741366562531.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26840i49223777DE65A476/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rguaram_0-1741366562531.png" alt="rguaram_0-1741366562531.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rguaram_1-1741366671205.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26841iB22BE8C966F7102D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rguaram_1-1741366671205.png" alt="rguaram_1-1741366671205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;or also with workflow if the query is very complex&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rguaram_2-1741366753386.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26842i3ADB7066CE5F0800/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rguaram_2-1741366753386.png" alt="rguaram_2-1741366753386.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 16:59:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271889#M35926</guid>
      <dc:creator>rguaram</dc:creator>
      <dc:date>2025-03-07T16:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create Metric for DQL Query</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271893#M35927</link>
      <description>&lt;P&gt;This is the way if you want to use DQL&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 18:44:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271893#M35927</guid>
      <dc:creator>StrangerThing</dc:creator>
      <dc:date>2025-03-07T18:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Metric for DQL Query</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271895#M35928</link>
      <description>&lt;P&gt;DQL &amp;amp; Davis Anomaly detector can also be used on a log metric. The main difference in using a log metric lies in the fact that the logs do not need to be queried continuously, thus reducing query expenses. The other difference is that the log metric will benefit from the longer default data retention vs logs.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 18:56:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271895#M35928</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-03-07T18:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Metric for DQL Query</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271896#M35929</link>
      <description>&lt;P&gt;I agree and this is what I do in practice and would recommend to keep query costs down. He was just asking about creating the metric event with DQL&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 19:03:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Create-Metric-for-DQL-Query/m-p/271896#M35929</guid>
      <dc:creator>StrangerThing</dc:creator>
      <dc:date>2025-03-07T19:03:30Z</dc:date>
    </item>
  </channel>
</rss>

