<?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 Ingest MSSQL logs to Dynatrace and create a problem when condition matches in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/Ingest-MSSQL-logs-to-Dynatrace-and-create-a-problem-when/m-p/251861#M161</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am trying to ingest MSSQL Logs to Dynatrace and create the Problem when condition matches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Logs contain 2 lines which is related to same Error, I would like to put the condition in Dynatrace if it contains &lt;STRONG&gt;severity :20&lt;/STRONG&gt; then create a problem and append complete second line in the problem:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2024-07-06 23:23:17.60&lt;/STRONG&gt; spid265 Error: 18056, Severity: 20, State: 23.&lt;BR /&gt;&lt;STRONG&gt;2024-07-06 23:23:17.60&lt;/STRONG&gt; spid265 The client was unable to reuse a session with SPID 25, which had been reset for connection pooling. The failure ID is 23. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Binod&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 10:00:59 GMT</pubDate>
    <dc:creator>binodkumarroy</dc:creator>
    <dc:date>2024-07-30T10:00:59Z</dc:date>
    <item>
      <title>Ingest MSSQL logs to Dynatrace and create a problem when condition matches</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Ingest-MSSQL-logs-to-Dynatrace-and-create-a-problem-when/m-p/251861#M161</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am trying to ingest MSSQL Logs to Dynatrace and create the Problem when condition matches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Logs contain 2 lines which is related to same Error, I would like to put the condition in Dynatrace if it contains &lt;STRONG&gt;severity :20&lt;/STRONG&gt; then create a problem and append complete second line in the problem:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2024-07-06 23:23:17.60&lt;/STRONG&gt; spid265 Error: 18056, Severity: 20, State: 23.&lt;BR /&gt;&lt;STRONG&gt;2024-07-06 23:23:17.60&lt;/STRONG&gt; spid265 The client was unable to reuse a session with SPID 25, which had been reset for connection pooling. The failure ID is 23. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Binod&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 10:00:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Ingest-MSSQL-logs-to-Dynatrace-and-create-a-problem-when/m-p/251861#M161</guid>
      <dc:creator>binodkumarroy</dc:creator>
      <dc:date>2024-07-30T10:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Logs Monitoring</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Ingest-MSSQL-logs-to-Dynatrace-and-create-a-problem-when/m-p/251940#M162</link>
      <description>&lt;P&gt;Hi Binod,&lt;/P&gt;&lt;P data-unlink="true"&gt;I think you can get this creating a &lt;A href="https://docs.dynatrace.com/docs/shortlink/log-monitoring-log-processing" target="_self"&gt;processing rule&lt;/A&gt; and a &lt;A href="https://docs.dynatrace.com/docs/observe-and-explore/log-monitoring/analyze-log-data/log-events#createlogevent" target="_self"&gt;log event&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;The processing rule to doing something like &lt;A href="https://docs.dynatrace.com/docs/shortlink/log-monitoring-log-processing-examples#lpexample2" target="_self"&gt;this&lt;/A&gt; to capture the second line to use the content capture in a custom attribute that you will use in the log event.&lt;/P&gt;&lt;P&gt;The log event to capture "severity:20" content for event type "Error".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_0-1722330423314.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21473i83DCCFC42402A79D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_0-1722330423314.png" alt="erh_inetum_0-1722330423314.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And finally, adding the custom attribute you define in the processing rule like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_2-1722330734624.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21476i6F92EC5C3B9B26E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_2-1722330734624.png" alt="erh_inetum_2-1722330734624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 09:15:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Ingest-MSSQL-logs-to-Dynatrace-and-create-a-problem-when/m-p/251940#M162</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2024-07-30T09:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ingest MSSQL logs to Dynatrace and create a problem when condition matches</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Ingest-MSSQL-logs-to-Dynatrace-and-create-a-problem-when/m-p/251958#M163</link>
      <description>&lt;P&gt;Thanks Elena. Let me try this and update if it works.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 10:03:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Ingest-MSSQL-logs-to-Dynatrace-and-create-a-problem-when/m-p/251958#M163</guid>
      <dc:creator>binodkumarroy</dc:creator>
      <dc:date>2024-07-30T10:03:05Z</dc:date>
    </item>
  </channel>
</rss>

