<?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 How to set an alert to find deviations from normal behavior when monitoring jobs in a SQL server? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-set-an-alert-to-find-deviations-from-normal-behavior-when/m-p/220976#M4051</link>
    <description>&lt;P&gt;I have SQL server, where are 6 SQL jobs and it's configured to write events to Windows journal every time when job is finished (it does not matter successfully or unsuccessfully).&lt;BR /&gt;
Normal behavior is that events appears every 5 min for one job, 15 min for another, 7 min for another and etc (duration between events can be with a small deviation).&lt;/P&gt;

&lt;P&gt;But sometimes, jobs can halt for a long time, therefore events will not appear..... &lt;/P&gt;

&lt;P&gt;I need to setup an alert for such incidents, i.e. find deviation from normal behavior.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2125i36E5E0D628D73BD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2016 19:25:14 GMT</pubDate>
    <dc:creator>DimkoBilanko</dc:creator>
    <dc:date>2016-11-15T19:25:14Z</dc:date>
    <item>
      <title>How to set an alert to find deviations from normal behavior when monitoring jobs in a SQL server?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-an-alert-to-find-deviations-from-normal-behavior-when/m-p/220976#M4051</link>
      <description>&lt;P&gt;I have SQL server, where are 6 SQL jobs and it's configured to write events to Windows journal every time when job is finished (it does not matter successfully or unsuccessfully).&lt;BR /&gt;
Normal behavior is that events appears every 5 min for one job, 15 min for another, 7 min for another and etc (duration between events can be with a small deviation).&lt;/P&gt;

&lt;P&gt;But sometimes, jobs can halt for a long time, therefore events will not appear..... &lt;/P&gt;

&lt;P&gt;I need to setup an alert for such incidents, i.e. find deviation from normal behavior.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2125i36E5E0D628D73BD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 19:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-an-alert-to-find-deviations-from-normal-behavior-when/m-p/220976#M4051</guid>
      <dc:creator>DimkoBilanko</dc:creator>
      <dc:date>2016-11-15T19:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set an alert to find deviations from normal behavior when monitoring jobs in a SQL server?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-an-alert-to-find-deviations-from-normal-behavior-when/m-p/220977#M4052</link>
      <description>&lt;P&gt;You can try the following which gives duration in minute for last event received for each SQL Job. You can setup alert for duration &amp;gt; SLA or specific JOB not found in the following result i.e. Number of Results &amp;lt; 6.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=host08 SourceName="SQLAgentHost08" EventCode=208 SQL_JOB_NAME=* | stats count as Count max(_time) as LastReceived by SQL_JOB_NAME | eval LastReceivedTime=strftime(LastReceived,"%Y/%m/%d %H:%M:%S") | eval durInMin=round((now()-LastReceived)/60,1) | fields - LastReceived
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2016 07:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-an-alert-to-find-deviations-from-normal-behavior-when/m-p/220977#M4052</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-16T07:01:26Z</dc:date>
    </item>
  </channel>
</rss>

