<?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: Custom alert condition in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Custom-alert-condition/m-p/48993#M652</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| stats count | where count&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Sep 2010 20:58:54 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2010-09-13T20:58:54Z</dc:date>
    <item>
      <title>Custom alert condition</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-condition/m-p/48992#M651</link>
      <description>&lt;P&gt;I am using the Manager to set-up a saved search/alert. Splunk runs a script every so often with an output like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Active channel: primary channel
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If "primary" ever changes to "backup", it alerts us via e-mail. "primary" is in a field called "ent_status". &lt;/P&gt;

&lt;P&gt;In the manager, I created a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="echk" ent_channel=backup 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using the menus-for-dummies, I told it "if number of events is greater than 0", send us an e-mail. Works great.&lt;/P&gt;

&lt;P&gt;But now I may be using a third party app to throttle the alerts (see my other question from earlier this morning). I need to re-format my alert to put into the "if custom condition is met" field. &lt;/P&gt;

&lt;P&gt;I'm having trouble doing this because "ent_channel" isn't an integer; I don't know how to do a compare. How do I translate "if number of events is greater than zero" into a search/alert command? &lt;/P&gt;

&lt;P&gt;I have the feeling I'm making this harder than it really is. &lt;/P&gt;

&lt;P&gt;Thank you very much. &lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2010 20:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-condition/m-p/48992#M651</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2010-09-13T20:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom alert condition</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-condition/m-p/48993#M652</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| stats count | where count&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Sep 2010 20:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-condition/m-p/48993#M652</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-09-13T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom alert condition</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-alert-condition/m-p/48994#M653</link>
      <description>&lt;P&gt;Now that was easy, heh. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2010 21:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-alert-condition/m-p/48994#M653</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2010-09-13T21:21:19Z</dc:date>
    </item>
  </channel>
</rss>

