<?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 make an alert that triggers when the count is greater than 5, but doesn't when it's less than one? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-do-I-make-an-alert-that-triggers-when-the-count-is-greater/m-p/384051#M6756</link>
    <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2018 14:44:36 GMT</pubDate>
    <dc:creator>paulalbert</dc:creator>
    <dc:date>2018-09-18T14:44:36Z</dc:date>
    <item>
      <title>How do I make an alert that triggers when the count is greater than 5, but doesn't when it's less than one?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-make-an-alert-that-triggers-when-the-count-is-greater/m-p/384049#M6754</link>
      <description>&lt;P&gt;Alert should be triggered when count is greater than 5 but also include records that don't trigger that alert&lt;/P&gt;

&lt;P&gt;I want my alert to return 6 fields, but only in cases where six or more of them are where isToday = 1. This alert should also include cases where isToday = 0.&lt;/P&gt;

&lt;P&gt;How can I do this?&lt;/P&gt;

&lt;P&gt;Thanks!&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/5807iBBAB741DD5847391/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>Mon, 17 Sep 2018 20:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-make-an-alert-that-triggers-when-the-count-is-greater/m-p/384049#M6754</guid>
      <dc:creator>paulalbert</dc:creator>
      <dc:date>2018-09-17T20:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make an alert that triggers when the count is greater than 5, but doesn't when it's less than one?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-make-an-alert-that-triggers-when-the-count-is-greater/m-p/384050#M6755</link>
      <description>&lt;P&gt;Hi @paulalbert,&lt;/P&gt;

&lt;P&gt;You can try below query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourquery&amp;gt;
| stats count(eval(if(diff1 &amp;lt; 3600*24*1, 1, null()))) as isToday by CWID, employeeStartDate, sn, givenName, employeeID, loginStatus
| eventstats sum(eval(if(isToday="1",1,0))) AS cn_isToday
| table CWID, empStartDate, sn, givenName, empID, loginStatus, isToday, cn_isToday
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then schedule alert with Alert Condition -&amp;gt; Trigger alert when -&amp;gt; Custom -&amp;gt; &lt;CODE&gt;search cn_isToday &amp;gt;= 6&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 10:56:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-make-an-alert-that-triggers-when-the-count-is-greater/m-p/384050#M6755</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-09-18T10:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make an alert that triggers when the count is greater than 5, but doesn't when it's less than one?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-make-an-alert-that-triggers-when-the-count-is-greater/m-p/384051#M6756</link>
      <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 14:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-make-an-alert-that-triggers-when-the-count-is-greater/m-p/384051#M6756</guid>
      <dc:creator>paulalbert</dc:creator>
      <dc:date>2018-09-18T14:44:36Z</dc:date>
    </item>
  </channel>
</rss>

