<?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 Simple stats conditional for alert in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42052#M9783</link>
    <description>&lt;P&gt;I've set up a simple search for flapping interfaces on our switches, looks like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; LINEPROTO-5-UPDOWN: Line protocol on Interface changed state to | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'd like to do is get an alert using a conditional ... stats count by host &amp;gt; 5 in fifteen minutes or something like that.  When I try this out it returns no data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; LINEPROTO-5-UPDOWN: Line protocol on Interface changed state to | stats count by host &amp;gt; 5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I get from there to where I want to be?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2011 19:24:05 GMT</pubDate>
    <dc:creator>mikeely</dc:creator>
    <dc:date>2011-12-29T19:24:05Z</dc:date>
    <item>
      <title>Simple stats conditional for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42052#M9783</link>
      <description>&lt;P&gt;I've set up a simple search for flapping interfaces on our switches, looks like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; LINEPROTO-5-UPDOWN: Line protocol on Interface changed state to | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'd like to do is get an alert using a conditional ... stats count by host &amp;gt; 5 in fifteen minutes or something like that.  When I try this out it returns no data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; LINEPROTO-5-UPDOWN: Line protocol on Interface changed state to | stats count by host &amp;gt; 5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I get from there to where I want to be?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2011 19:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42052#M9783</guid>
      <dc:creator>mikeely</dc:creator>
      <dc:date>2011-12-29T19:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Simple stats conditional for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42053#M9784</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;LINEPROTO-5-UPDOWN: Line protocol on Interface changed state to | stats count by host | where count &amp;gt; 5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Dec 2011 19:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42053#M9784</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-12-29T19:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Simple stats conditional for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42054#M9785</link>
      <description>&lt;P&gt;It looks like it should work but still "No results found" which is strange, when I take out the where clause, there are a couple values above five.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2011 19:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42054#M9785</guid>
      <dc:creator>mikeely</dc:creator>
      <dc:date>2011-12-29T19:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Simple stats conditional for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42055#M9786</link>
      <description>&lt;P&gt;sorry, should be &lt;CODE&gt;count &amp;gt; 5&lt;/CODE&gt;, not &lt;CODE&gt;host&lt;/CODE&gt;. editing to fix.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2011 20:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42055#M9786</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-12-29T20:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Simple stats conditional for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42056#M9787</link>
      <description>&lt;P&gt;One would think I could have tried that myself but I've apparently got too many hats on today to be any good at one thing.  Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2011 20:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-stats-conditional-for-alert/m-p/42056#M9787</guid>
      <dc:creator>mikeely</dc:creator>
      <dc:date>2011-12-29T20:43:53Z</dc:date>
    </item>
  </channel>
</rss>

