<?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: Alert when count is less than a certain threshold in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235944#M4424</link>
    <description>&lt;P&gt;Last ten minutes: earliest=-10m@s latest=now &lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 15:21:41 GMT</pubDate>
    <dc:creator>cpraznowski_spl</dc:creator>
    <dc:date>2016-05-10T15:21:41Z</dc:date>
    <item>
      <title>Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235938#M4418</link>
      <description>&lt;P&gt;Hi...here is my search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="isc:dhcp"   earliest=-10m@s latest=now |    stats count  as dhcp_count by _time | where dhcp_count&amp;lt;5000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'll usually get returned stats:&lt;BR /&gt;
4800&lt;BR /&gt;
10,000&lt;BR /&gt;
11,000&lt;/P&gt;

&lt;P&gt;I have this running on 5 minute cron schedule...don't see results. Perhaps I shall try real-time every 5 minutes...any thoughts appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 19:54:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235938#M4418</guid>
      <dc:creator>cpraznowski_spl</dc:creator>
      <dc:date>2016-05-09T19:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235939#M4419</link>
      <description>&lt;P&gt;Don't do real-time scheduled alert as it never ends. When you say your don't see result mean that alert is not triggered?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 20:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235939#M4419</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-09T20:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235940#M4420</link>
      <description>&lt;P&gt;hi...yes, thanks for responding, I get the results above in my stats table, but when I access, Activity, Triggered alerts (search all)...I do not see results.   In the above example, I was expecting to see the alert triggered b/c the count was 4,800...ie &amp;lt;5000&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 20:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235940#M4420</guid>
      <dc:creator>cpraznowski_spl</dc:creator>
      <dc:date>2016-05-09T20:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235941#M4421</link>
      <description>&lt;P&gt;The result that you gave, is it from the search which includes the where clause? Can you check in the scheduler logs to see what is the result_count returned by the search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=scheduler savedsearch_name="YourAlertSearchName"  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2016 20:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235941#M4421</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-09T20:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235942#M4422</link>
      <description>&lt;P&gt;Why do you have the "by clause" in your stats command, or a stats command at all?  Shouldnt it just be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype="isc:dhcp" earliest=-10m@s latest=now | where count&amp;lt;5000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See if that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 00:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235942#M4422</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-10T00:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235943#M4423</link>
      <description>&lt;P&gt;You have not specified the most important part: what is your &lt;CODE&gt;timepicker&lt;/CODE&gt;?  Typically, this &lt;CODE&gt;range&lt;/CODE&gt; is similar to the &lt;CODE&gt;period&lt;/CODE&gt; so maybe you are running with &lt;CODE&gt;Last 5 minutes&lt;/CODE&gt; which maybe is not a long enough timespan to ever rack up 5000 hits.  When you say you "usually get ...", what was your &lt;CODE&gt;timepicker&lt;/CODE&gt; value?&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 04:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235943#M4423</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-10T04:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235944#M4424</link>
      <description>&lt;P&gt;Last ten minutes: earliest=-10m@s latest=now &lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235944#M4424</guid>
      <dc:creator>cpraznowski_spl</dc:creator>
      <dc:date>2016-05-10T15:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235945#M4425</link>
      <description>&lt;P&gt;by clause because the dchp server sends  logs every 5 minutes&lt;BR /&gt;
12:10 4800&lt;BR /&gt;
12:15 10000&lt;BR /&gt;
12:20 12000&lt;/P&gt;

&lt;P&gt;The span is 10 minutes in period, so I want to alert when any of the _time dimensions &amp;lt; 5000&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235945#M4425</guid>
      <dc:creator>cpraznowski_spl</dc:creator>
      <dc:date>2016-05-10T15:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235946#M4426</link>
      <description>&lt;P&gt;cool, will take a look&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235946#M4426</guid>
      <dc:creator>cpraznowski_spl</dc:creator>
      <dc:date>2016-05-10T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235947#M4427</link>
      <description>&lt;P&gt;Surely you do not have 11K events per second, right?  Your &lt;CODE&gt;BY _time&lt;/CODE&gt; clause seems silly to me; probably you should be doing this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype="isc:dhcp" earliest=-10m@s latest=now | stats count AS dhcp_count | where dhcp_count&amp;lt;5000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I would put the &lt;CODE&gt;| where ...&lt;/CODE&gt; part inside your alert threshold settings.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235947#M4427</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-10T15:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235948#M4428</link>
      <description>&lt;P&gt;Not quite....11K events per 5 minute period&lt;/P&gt;

&lt;P&gt;..And I would put the | where ... part inside your alert threshold settings.... that's what I think I need to try..thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235948#M4428</guid>
      <dc:creator>cpraznowski_spl</dc:creator>
      <dc:date>2016-05-10T15:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235949#M4429</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;alert search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="isc:dhcp"   earliest=-11m@m latest=-1m@m|    stats count  as dhcp_count by _time | where dhcp_count&amp;lt;5000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alert schedule - Cron&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1-59/5 * * * *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alert condition&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;When number of events &amp;gt; 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 May 2016 15:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235949#M4429</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-10T15:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235950#M4430</link>
      <description>&lt;P&gt;woohoo, thanks a ton&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:50:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235950#M4430</guid>
      <dc:creator>cpraznowski_spl</dc:creator>
      <dc:date>2016-05-10T15:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when count is less than a certain threshold</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235951#M4431</link>
      <description>&lt;P&gt;thanks !   &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:51:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-count-is-less-than-a-certain-threshold/m-p/235951#M4431</guid>
      <dc:creator>cpraznowski_spl</dc:creator>
      <dc:date>2016-05-10T15:51:45Z</dc:date>
    </item>
  </channel>
</rss>

