<?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 Alert on single line data written into log analytics in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Alert-on-single-line-data-written-into-log-analytics/m-p/227972#M3869</link>
    <description>&lt;P&gt;Good morning community,&lt;/P&gt;
&lt;P&gt;I'm currently ingesting a volume of data inside an analytics schema.&lt;BR /&gt;I'm interest in specific dynamic when some of the results are in failed status:&lt;/P&gt;
&lt;TABLE width="1933"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;MessageGuid&lt;/TD&gt;
&lt;TD width="118.008px"&gt;CorrelationId&lt;/TD&gt;
&lt;TD width="168.289px"&gt;ApplicationMessageId&lt;/TD&gt;
&lt;TD width="187.062px"&gt;ApplicationMessageType&lt;/TD&gt;
&lt;TD width="64px"&gt;Sender&lt;/TD&gt;
&lt;TD width="167.469px"&gt;IntegrationFlowName&lt;/TD&gt;
&lt;TD width="63px"&gt;Status&lt;/TD&gt;
&lt;TD width="111.008px"&gt;Duration_ms&lt;/TD&gt;
&lt;TD width="946.156px"&gt;Exception&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;123&lt;/TD&gt;
&lt;TD width="118.008px"&gt;abc1&lt;/TD&gt;
&lt;TD width="168.289px"&gt;4568&lt;/TD&gt;
&lt;TD width="187.062px"&gt;important_application&lt;/TD&gt;
&lt;TD width="64px"&gt;A&lt;/TD&gt;
&lt;TD width="167.469px"&gt;Route_Idoc&lt;/TD&gt;
&lt;TD width="63px"&gt;FAILED&lt;/TD&gt;
&lt;TD width="111.008px"&gt;2433&lt;/TD&gt;
&lt;TD width="946.156px"&gt;org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://**************.com/api/data/v7.*/$batch with statusCode: 400&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;778&lt;/TD&gt;
&lt;TD width="118.008px"&gt;abc2&lt;/TD&gt;
&lt;TD width="168.289px"&gt;4569&lt;/TD&gt;
&lt;TD width="187.062px"&gt;important_application&lt;/TD&gt;
&lt;TD width="64px"&gt;A&lt;/TD&gt;
&lt;TD width="167.469px"&gt;Route_Idoc&lt;/TD&gt;
&lt;TD width="63px"&gt;FAILED&lt;/TD&gt;
&lt;TD width="111.008px"&gt;5120&lt;/TD&gt;
&lt;TD width="946.156px"&gt;org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://**************.com/api/data/v7.*/$batch with statusCode: 401&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;980&lt;/TD&gt;
&lt;TD width="118.008px"&gt;abc3&lt;/TD&gt;
&lt;TD width="168.289px"&gt;4562&lt;/TD&gt;
&lt;TD width="187.062px"&gt;important_application&lt;/TD&gt;
&lt;TD width="64px"&gt;B&lt;/TD&gt;
&lt;TD width="167.469px"&gt;Route_Idoc&lt;/TD&gt;
&lt;TD width="63px"&gt;FAILED&lt;/TD&gt;
&lt;TD width="111.008px"&gt;11563&lt;/TD&gt;
&lt;TD width="946.156px"&gt;org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://**************.com/api/data/v7.*/$batch with statusCode: 402&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;321&lt;/TD&gt;
&lt;TD width="118.008px"&gt;abc4&lt;/TD&gt;
&lt;TD width="168.289px"&gt;4561&lt;/TD&gt;
&lt;TD width="187.062px"&gt;important_application&lt;/TD&gt;
&lt;TD width="64px"&gt;B&lt;/TD&gt;
&lt;TD width="167.469px"&gt;Route_Idoc&lt;/TD&gt;
&lt;TD width="63px"&gt;FAILED&lt;/TD&gt;
&lt;TD width="111.008px"&gt;5180&lt;/TD&gt;
&lt;TD width="946.156px"&gt;org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://**************.com/api/data/v7.*/$batch with statusCode: 403&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;My question is the following:&lt;/P&gt;
&lt;P&gt;Considering that I'm on Dynatrace Saas, will it be possible to alert from Dynatrace on single results when they contain status failed and send a problem with a custom payload, with values taken from the log line itself?&lt;BR /&gt;For an example : when I do have one row with status failed, generate an alert with the following message:&lt;BR /&gt;&lt;BR /&gt;The message &amp;lt;take the value from the analytics MessageGuID&amp;gt; has status &amp;lt;take the value from the analytics&amp;nbsp; Status&amp;gt; with Exception &amp;lt; value from the analytics Exception&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Thank for any feedback and experience shared,&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 09:14:21 GMT</pubDate>
    <dc:creator>y_buccellato</dc:creator>
    <dc:date>2023-11-09T09:14:21Z</dc:date>
    <item>
      <title>Alert on single line data written into log analytics</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-single-line-data-written-into-log-analytics/m-p/227972#M3869</link>
      <description>&lt;P&gt;Good morning community,&lt;/P&gt;
&lt;P&gt;I'm currently ingesting a volume of data inside an analytics schema.&lt;BR /&gt;I'm interest in specific dynamic when some of the results are in failed status:&lt;/P&gt;
&lt;TABLE width="1933"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;MessageGuid&lt;/TD&gt;
&lt;TD width="118.008px"&gt;CorrelationId&lt;/TD&gt;
&lt;TD width="168.289px"&gt;ApplicationMessageId&lt;/TD&gt;
&lt;TD width="187.062px"&gt;ApplicationMessageType&lt;/TD&gt;
&lt;TD width="64px"&gt;Sender&lt;/TD&gt;
&lt;TD width="167.469px"&gt;IntegrationFlowName&lt;/TD&gt;
&lt;TD width="63px"&gt;Status&lt;/TD&gt;
&lt;TD width="111.008px"&gt;Duration_ms&lt;/TD&gt;
&lt;TD width="946.156px"&gt;Exception&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;123&lt;/TD&gt;
&lt;TD width="118.008px"&gt;abc1&lt;/TD&gt;
&lt;TD width="168.289px"&gt;4568&lt;/TD&gt;
&lt;TD width="187.062px"&gt;important_application&lt;/TD&gt;
&lt;TD width="64px"&gt;A&lt;/TD&gt;
&lt;TD width="167.469px"&gt;Route_Idoc&lt;/TD&gt;
&lt;TD width="63px"&gt;FAILED&lt;/TD&gt;
&lt;TD width="111.008px"&gt;2433&lt;/TD&gt;
&lt;TD width="946.156px"&gt;org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://**************.com/api/data/v7.*/$batch with statusCode: 400&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;778&lt;/TD&gt;
&lt;TD width="118.008px"&gt;abc2&lt;/TD&gt;
&lt;TD width="168.289px"&gt;4569&lt;/TD&gt;
&lt;TD width="187.062px"&gt;important_application&lt;/TD&gt;
&lt;TD width="64px"&gt;A&lt;/TD&gt;
&lt;TD width="167.469px"&gt;Route_Idoc&lt;/TD&gt;
&lt;TD width="63px"&gt;FAILED&lt;/TD&gt;
&lt;TD width="111.008px"&gt;5120&lt;/TD&gt;
&lt;TD width="946.156px"&gt;org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://**************.com/api/data/v7.*/$batch with statusCode: 401&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;980&lt;/TD&gt;
&lt;TD width="118.008px"&gt;abc3&lt;/TD&gt;
&lt;TD width="168.289px"&gt;4562&lt;/TD&gt;
&lt;TD width="187.062px"&gt;important_application&lt;/TD&gt;
&lt;TD width="64px"&gt;B&lt;/TD&gt;
&lt;TD width="167.469px"&gt;Route_Idoc&lt;/TD&gt;
&lt;TD width="63px"&gt;FAILED&lt;/TD&gt;
&lt;TD width="111.008px"&gt;11563&lt;/TD&gt;
&lt;TD width="946.156px"&gt;org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://**************.com/api/data/v7.*/$batch with statusCode: 402&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="107.008px"&gt;321&lt;/TD&gt;
&lt;TD width="118.008px"&gt;abc4&lt;/TD&gt;
&lt;TD width="168.289px"&gt;4561&lt;/TD&gt;
&lt;TD width="187.062px"&gt;important_application&lt;/TD&gt;
&lt;TD width="64px"&gt;B&lt;/TD&gt;
&lt;TD width="167.469px"&gt;Route_Idoc&lt;/TD&gt;
&lt;TD width="63px"&gt;FAILED&lt;/TD&gt;
&lt;TD width="111.008px"&gt;5180&lt;/TD&gt;
&lt;TD width="946.156px"&gt;org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://**************.com/api/data/v7.*/$batch with statusCode: 403&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;My question is the following:&lt;/P&gt;
&lt;P&gt;Considering that I'm on Dynatrace Saas, will it be possible to alert from Dynatrace on single results when they contain status failed and send a problem with a custom payload, with values taken from the log line itself?&lt;BR /&gt;For an example : when I do have one row with status failed, generate an alert with the following message:&lt;BR /&gt;&lt;BR /&gt;The message &amp;lt;take the value from the analytics MessageGuID&amp;gt; has status &amp;lt;take the value from the analytics&amp;nbsp; Status&amp;gt; with Exception &amp;lt; value from the analytics Exception&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Thank for any feedback and experience shared,&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 09:14:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-single-line-data-written-into-log-analytics/m-p/227972#M3869</guid>
      <dc:creator>y_buccellato</dc:creator>
      <dc:date>2023-11-09T09:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alert on single line data written into log analytics</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alert-on-single-line-data-written-into-log-analytics/m-p/233282#M4024</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4804"&gt;@y_buccellato&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I believe yes you can do this with the workflows capabilities inside of Dynatrace. You could have a timer that executes the workflow every x minutes depending on the frequency of how many times the log is written two.&lt;/P&gt;&lt;P&gt;The next step would be creating the DQL query you are looking for and passing the output of it to the next step.&lt;/P&gt;&lt;P&gt;The final step would be a Javascript "node" that would execute the Problems API internally from the workflow to create a custom problem , here you can do some data transformation to select the data you want out of the DQL query results and add it to the body of the problem.&lt;/P&gt;&lt;P&gt;All being well it should look somthing like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="luke_hearth_0-1704299179628.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16591iC1302A8AF9D06417/image-size/medium?v=v2&amp;amp;px=400" role="button" title="luke_hearth_0-1704299179628.png" alt="luke_hearth_0-1704299179628.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition if you dont get the data out of the DQL "Node" you can allways also query the DQL API from Javascript aswell so you would just have 1 JS "node" that queries , processes and posts a Dynatrace problem.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 16:26:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alert-on-single-line-data-written-into-log-analytics/m-p/233282#M4024</guid>
      <dc:creator>LukeHearth</dc:creator>
      <dc:date>2024-01-03T16:26:42Z</dc:date>
    </item>
  </channel>
</rss>

