<?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: Trigger Alert on 10 consecutive occurrences of  ErrorCode= in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514358#M9476</link>
    <description>&lt;P&gt;&lt;STRONG&gt;by &lt;/STRONG&gt;clause is missing.&lt;/P&gt;</description>
    <pubDate>Sun, 16 Aug 2020 23:12:54 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-08-16T23:12:54Z</dc:date>
    <item>
      <title>Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514237#M9470</link>
      <description>&lt;P&gt;Hello Splunkers&lt;/P&gt;&lt;P&gt;I have an IIS log I need to open and search through every 15 minutes. If I see 10 consecutive occurences of the field ErorrCode= within a five minute period I want to trigger an alert.&lt;/P&gt;&lt;P&gt;ErrorCode=&amp;nbsp; Will be populated with different error codes like this ErrorCode=T1234.&amp;nbsp; I dont want to count individual error codes just the field ErrorCode.&amp;nbsp; I have been able to seach for occurences using alerts but the requirement if that they have to be consecutive occurences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example snippet&amp;nbsp; ErrorCode can return several different values.&amp;nbsp; We dont care about the individual codes we just want to trigger when&amp;nbsp; the term ErrorCode appears in 10 consecutive lines of the log during a time window of 5 minutes&lt;/P&gt;&lt;P&gt;LogTypeID="x", InfoSourceID="x", ErrorText="xxxxxxxx", ErrorCode="XXXXXX", ErrorDescription="xxxxxxxx", IISServerName="xxxxxx", CreatedDate="2020-08-14 10:19:34.557", CreatedBy="xxxxxx", MemberShipID="xxxxxx", RegisterRequestTime="2020-08-14 10:16:06.0", AppCode="xxxxxx", InvalidAppCode="xxxxxx,"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be appreciated&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 17:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514237#M9470</guid>
      <dc:creator>irishmanjb</dc:creator>
      <dc:date>2020-08-15T17:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514289#M9471</link>
      <description>&lt;P&gt;streamstats has time_window option.&lt;BR /&gt;but there is not the detail of&amp;nbsp;&lt;STRONG&gt;consecutive occurrences .&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 04:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514289#M9471</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-16T04:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514295#M9472</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214488"&gt;@irishmanjb&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;index=abc &lt;SPAN&gt;ErrorCode=*&lt;/SPAN&gt; |bin span=5m _time | stats count by &lt;SPAN&gt;ErrorCode&lt;/SPAN&gt;,_time|where count&amp;gt;=10&lt;/P&gt;&lt;P&gt;Try above query. It should work.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 08:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514295#M9472</guid>
      <dc:creator>venkateshparank</dc:creator>
      <dc:date>2020-08-16T08:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514326#M9473</link>
      <description>&lt;P&gt;thanks will take a look&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 14:51:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514326#M9473</guid>
      <dc:creator>irishmanjb</dc:creator>
      <dc:date>2020-08-16T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514332#M9474</link>
      <description>&lt;P&gt;Try this.&amp;nbsp; It will trigger an alert when there are 10 or more consecutive errors, but will not return the individual events.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = foo
| bin span=5m _time
| streamstats reset_after=(isnull(ErrorCode)) count
| where (count &amp;gt;= 10 AND isnotnull(ErrorCode))&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 16 Aug 2020 16:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514332#M9474</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-16T16:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514350#M9475</link>
      <description>&lt;P&gt;thanks will test this.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 20:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514350#M9475</guid>
      <dc:creator>irishmanjb</dc:creator>
      <dc:date>2020-08-16T20:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514358#M9476</link>
      <description>&lt;P&gt;&lt;STRONG&gt;by &lt;/STRONG&gt;clause is missing.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 23:12:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514358#M9476</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-16T23:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514359#M9477</link>
      <description>&lt;P&gt;If the event doesn't have ErrorCode, this query can't work.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 23:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514359#M9477</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-16T23:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514361#M9478</link>
      <description>&lt;P&gt;thanks to4kawa on what answer?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 00:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/514361#M9478</guid>
      <dc:creator>irishmanjb</dc:creator>
      <dc:date>2020-08-17T00:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Alert on 10 consecutive occurrences of  ErrorCode=</title>
      <link>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/516065#M9557</link>
      <description>&lt;P&gt;sorry for the delay this set me down the right path thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 15:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Trigger-Alert-on-10-consecutive-occurrences-of-ErrorCode/m-p/516065#M9557</guid>
      <dc:creator>irishmanjb</dc:creator>
      <dc:date>2020-08-25T15:27:47Z</dc:date>
    </item>
  </channel>
</rss>

