<?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: How do I trigger an alert if a continuously number repeats more than 5 times? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420140#M7325</link>
    <description>&lt;P&gt;Can you paste some sample (actual looking events) data. Please mask unwanted information. I want to look at the actual field with value.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 18:22:19 GMT</pubDate>
    <dc:creator>sudosplunk</dc:creator>
    <dc:date>2018-08-23T18:22:19Z</dc:date>
    <item>
      <title>How do I trigger an alert if a continuously number repeats more than 5 times?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420136#M7321</link>
      <description>&lt;P&gt;For example.&lt;BR /&gt;
i have a field which has repeated numbers. if a number is repeated more than 5 times, i need to clear an alert.&lt;/P&gt;

&lt;P&gt;for example if number "3" repeats more than 5 times. i need to filter it.&lt;/P&gt;

&lt;P&gt;1&lt;BR /&gt;
1&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
5&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 13:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420136#M7321</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2018-08-23T13:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I trigger an alert if a continuously number repeats more than 5 times?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420137#M7322</link>
      <description>&lt;P&gt;you can run a query with&lt;BR /&gt;
| stats count(field) by field&lt;/P&gt;

&lt;P&gt;Which will give you output like this:&lt;BR /&gt;
field      count&lt;BR /&gt;
1           3&lt;BR /&gt;
2           1&lt;BR /&gt;
3           5&lt;BR /&gt;
4           3&lt;/P&gt;

&lt;P&gt;Then you can create a alert based on count field with count&amp;gt;5  and pass the value of $field$ in result.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 13:59:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420137#M7322</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2018-08-23T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I trigger an alert if a continuously number repeats more than 5 times?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420138#M7323</link>
      <description>&lt;P&gt;If you have a field called "X", then add something like below to your search and schedule your alert in a normal way.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;...count(eval(X="3")) AS count_number BY sourcetype | where count_number &amp;gt; 5&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 14:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420138#M7323</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-23T14:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I trigger an alert if a continuously number repeats more than 5 times?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420139#M7324</link>
      <description>&lt;P&gt;3 is not a constant.. even if 2 was  present more than 5 we need trigger alert. It will be like if a same number present more than 5 times . We need to trigger an alert&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 17:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420139#M7324</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2018-08-23T17:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I trigger an alert if a continuously number repeats more than 5 times?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420140#M7325</link>
      <description>&lt;P&gt;Can you paste some sample (actual looking events) data. Please mask unwanted information. I want to look at the actual field with value.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 18:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420140#M7325</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-23T18:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I trigger an alert if a continuously number repeats more than 5 times?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420141#M7326</link>
      <description>&lt;P&gt;Hi @premranjithj, Were you able to test out either of these solutions? Did they work? If yes, please don't forget to resolve this post by clicking on "Accept". If you still need more help, please provide a comment with some feedback. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 22:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420141#M7326</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-08-23T22:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I trigger an alert if a continuously number repeats more than 5 times?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420142#M7327</link>
      <description>&lt;H2&gt;below is the example. we need to refer column inc_value. if same number repeats more than 5 times. we need to trigger alert&lt;/H2&gt;

&lt;P&gt;datetime              inc_value&lt;BR /&gt;
24/08/2018 06:18           1&lt;BR /&gt;
24/08/2018 06:20           1&lt;BR /&gt;
24/08/2018 06:30           1&lt;BR /&gt;
24/08/2018 06:33           1&lt;BR /&gt;
24/08/2018 06:34            1&lt;BR /&gt;
24/08/2018 06:38           1&lt;BR /&gt;
24/08/2018 06:40           1&lt;BR /&gt;
24/08/2018 06:45           1&lt;BR /&gt;
24/08/2018 06:18           2&lt;BR /&gt;
24/08/2018 06:21           2&lt;BR /&gt;
24/08/2018 06:32           2&lt;BR /&gt;
24/08/2018 06:22           3&lt;BR /&gt;
24/08/2018 06:25           3&lt;BR /&gt;
24/08/2018 06:39           3&lt;BR /&gt;
24/08/2018 06:44            3&lt;BR /&gt;
24/08/2018 06:21           4&lt;BR /&gt;
24/08/2018 06:24           4&lt;BR /&gt;
24/08/2018 06:31           4&lt;BR /&gt;
24/08/2018 06:37           4&lt;BR /&gt;
24/08/2018 06:42            4&lt;BR /&gt;
24/08/2018 06:20           5&lt;BR /&gt;
24/08/2018 06:21           5&lt;BR /&gt;
24/08/2018 06:30           5&lt;BR /&gt;
24/08/2018 06:31           5&lt;BR /&gt;
24/08/2018 06:34           5&lt;BR /&gt;
24/08/2018 06:35           5&lt;BR /&gt;
24/08/2018 06:36           5&lt;BR /&gt;
24/08/2018 06:37            5&lt;BR /&gt;
24/08/2018 06:39           5&lt;BR /&gt;
24/08/2018 06:40           5&lt;BR /&gt;
24/08/2018 06:41           5&lt;BR /&gt;
24/08/2018 06:42           5&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 06:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420142#M7327</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2018-08-24T06:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I trigger an alert if a continuously number repeats more than 5 times?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420143#M7328</link>
      <description>&lt;P&gt;See if this works, &lt;CODE&gt;...| stats count by inc_value | where count &amp;gt; 5&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Below is the run anywhere search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval new = "24/08/2018 06:18 1
24/08/2018 06:20 1
24/08/2018 06:30 1
24/08/2018 06:33 1
24/08/2018 06:34 1
24/08/2018 06:38 1
24/08/2018 06:40 1
24/08/2018 06:45 1
24/08/2018 06:18 2
24/08/2018 06:21 2
24/08/2018 06:32 2
24/08/2018 06:22 3
24/08/2018 06:25 3
24/08/2018 06:39 3
24/08/2018 06:44 3
24/08/2018 06:21 4
24/08/2018 06:24 4
24/08/2018 06:31 4
24/08/2018 06:37 4
24/08/2018 06:42 4
24/08/2018 06:20 5
24/08/2018 06:21 5
24/08/2018 06:30 5
24/08/2018 06:31 5
24/08/2018 06:34 5
24/08/2018 06:35 5
24/08/2018 06:36 5
24/08/2018 06:37 5
24/08/2018 06:39 5
24/08/2018 06:40 5
24/08/2018 06:41 5
24/08/2018 06:42 5"
| rex max_match=0 field=new "\S+\s\S+\s(?&amp;lt;inc&amp;gt;\d)"
| stats count by inc
| where count &amp;gt; 5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Aug 2018 19:20:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-trigger-an-alert-if-a-continuously-number-repeats-more/m-p/420143#M7328</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-24T19:20:24Z</dc:date>
    </item>
  </channel>
</rss>

