<?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 Can a log metric be used in an alert like this? in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Can-a-log-metric-be-used-in-an-alert-like-this/m-p/165671#M2249</link>
    <description>&lt;P&gt;I've got a log file that every so often writes the duration of a script down:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Friday, May 7, 2021 5:31:07 PM]&amp;nbsp;&lt;/SPAN&gt;Run started...&lt;BR /&gt;&lt;SPAN&gt;[Friday, May 7, 2021 6:32:28 PM]&amp;nbsp;&lt;/SPAN&gt;Run completed&lt;BR /&gt;&lt;SPAN&gt;[Friday, May 7, 2021 6:32:28 PM] Total runtime: 61.21 Minutes&lt;BR /&gt;[Friday, May 7, 2021 6:36:07 PM]&amp;nbsp;Run started...&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;My metric captures the 61.21 as a Number called RunMinutes and that seems to work great for charting.&lt;BR /&gt;This log exists for many process groups.&lt;BR /&gt;&lt;BR /&gt;What I want to do is monitor for RunMinutes greater than 45 and trigger a Slowdown alert, and if the log hasn't been written to in an hour, trigger an (error, availability?) Alert.&lt;BR /&gt;&lt;BR /&gt;From the Create Custom Event for Alerting, when I select my RunMinutes Metric, the option by "&lt;SPAN&gt;Alert anomalies with a static threshold of" only has "Count" in the dropdown.&amp;nbsp; If I put 45 in there, am I telling it 45 new instances of RunMinutes, instead of a RunMinutes value of greater than 45?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;And on the next bit, if I set the observation period to 60 minutes - where we can Alert if the data is missing for 60 minutes - if one of my logs that gives me RunMinutes is hung up, but the others are still putting in RunMinutes - while I not see an alarm, do I need to do I need to create a single custom event for each log to get an alert when one's hung up?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 18:50:30 GMT</pubDate>
    <dc:creator>Brynatrace</dc:creator>
    <dc:date>2021-05-07T18:50:30Z</dc:date>
    <item>
      <title>Can a log metric be used in an alert like this?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Can-a-log-metric-be-used-in-an-alert-like-this/m-p/165671#M2249</link>
      <description>&lt;P&gt;I've got a log file that every so often writes the duration of a script down:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Friday, May 7, 2021 5:31:07 PM]&amp;nbsp;&lt;/SPAN&gt;Run started...&lt;BR /&gt;&lt;SPAN&gt;[Friday, May 7, 2021 6:32:28 PM]&amp;nbsp;&lt;/SPAN&gt;Run completed&lt;BR /&gt;&lt;SPAN&gt;[Friday, May 7, 2021 6:32:28 PM] Total runtime: 61.21 Minutes&lt;BR /&gt;[Friday, May 7, 2021 6:36:07 PM]&amp;nbsp;Run started...&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;My metric captures the 61.21 as a Number called RunMinutes and that seems to work great for charting.&lt;BR /&gt;This log exists for many process groups.&lt;BR /&gt;&lt;BR /&gt;What I want to do is monitor for RunMinutes greater than 45 and trigger a Slowdown alert, and if the log hasn't been written to in an hour, trigger an (error, availability?) Alert.&lt;BR /&gt;&lt;BR /&gt;From the Create Custom Event for Alerting, when I select my RunMinutes Metric, the option by "&lt;SPAN&gt;Alert anomalies with a static threshold of" only has "Count" in the dropdown.&amp;nbsp; If I put 45 in there, am I telling it 45 new instances of RunMinutes, instead of a RunMinutes value of greater than 45?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;And on the next bit, if I set the observation period to 60 minutes - where we can Alert if the data is missing for 60 minutes - if one of my logs that gives me RunMinutes is hung up, but the others are still putting in RunMinutes - while I not see an alarm, do I need to do I need to create a single custom event for each log to get an alert when one's hung up?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 18:50:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Can-a-log-metric-be-used-in-an-alert-like-this/m-p/165671#M2249</guid>
      <dc:creator>Brynatrace</dc:creator>
      <dc:date>2021-05-07T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can a log metric be used in an alert like this?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Can-a-log-metric-be-used-in-an-alert-like-this/m-p/165729#M2250</link>
      <description>&lt;P&gt;As long as the data exists/shows up in the log file, then yes you can alert on it. You have multiple methods to alert on it. You can create a problem on it, create an event for it an so on. Id give it a shot especially if you need to be alerted when the entry shows up in the log.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 12:39:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Can-a-log-metric-be-used-in-an-alert-like-this/m-p/165729#M2250</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2021-05-10T12:39:37Z</dc:date>
    </item>
  </channel>
</rss>

