<?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 Condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57963#M14162</link>
    <description>&lt;P&gt;I tried this &lt;/P&gt;

&lt;P&gt;search dedup AvgOut,AvgOutQNOW | where AvgOutQNOW&amp;gt;AvgOut&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2013 15:59:24 GMT</pubDate>
    <dc:creator>TiagoMatos</dc:creator>
    <dc:date>2013-09-09T15:59:24Z</dc:date>
    <item>
      <title>Custom Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57960#M14159</link>
      <description>&lt;P&gt;Hello, I have a table that returns with these fields: AvgLow and AvgLowNOW, but they appear many times, like this&lt;/P&gt;

&lt;P&gt;AvgLow AvgLowNOW&lt;BR /&gt;
a        b&lt;BR /&gt;
a        b&lt;BR /&gt;
a        b&lt;BR /&gt;
a        b&lt;BR /&gt;
a        b&lt;/P&gt;

&lt;P&gt;I need to create an alert for when AvgLowNOW is greater then AvgLow. But in custome search condition with "search AvgLowNOW&amp;gt;AvgLow", I catch no events. What can I do to solve this?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:22:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57960#M14159</guid>
      <dc:creator>TiagoMatos</dc:creator>
      <dc:date>2013-09-09T15:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57961#M14160</link>
      <description>&lt;P&gt;Try if() or case() eval functions&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Eval"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Eval&lt;/A&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;hypothetical example:&lt;/LI&gt;
&lt;LI&gt;index=appmgmt | eval x=if(status&amp;gt;=status_description,1,0) | table x&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57961#M14160</guid>
      <dc:creator>wagnerbianchi</dc:creator>
      <dc:date>2013-09-09T15:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57962#M14161</link>
      <description>&lt;P&gt;I'm Portuguese, but on my work place I don't have access to skype.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57962#M14161</guid>
      <dc:creator>TiagoMatos</dc:creator>
      <dc:date>2013-09-09T15:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57963#M14162</link>
      <description>&lt;P&gt;I tried this &lt;/P&gt;

&lt;P&gt;search dedup AvgOut,AvgOutQNOW | where AvgOutQNOW&amp;gt;AvgOut&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57963#M14162</guid>
      <dc:creator>TiagoMatos</dc:creator>
      <dc:date>2013-09-09T15:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57964#M14163</link>
      <description>&lt;P&gt;Is that work? look the example I've just sent...&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 16:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57964#M14163</guid>
      <dc:creator>wagnerbianchi</dc:creator>
      <dc:date>2013-09-09T16:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57965#M14164</link>
      <description>&lt;P&gt;Ok thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 16:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57965#M14164</guid>
      <dc:creator>TiagoMatos</dc:creator>
      <dc:date>2013-09-09T16:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57966#M14165</link>
      <description>&lt;P&gt;Hi Tiago,&lt;/P&gt;

&lt;P&gt;From your comments in the other answer, it looks as though you're nearly there. The &lt;CODE&gt;where&lt;/CODE&gt; function is definitely your friend.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt; | where AvgLow &amp;lt; AvgLowNOW
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will return all results where &lt;CODE&gt;AvgLowNOW&lt;/CODE&gt; is greater than &lt;CODE&gt;AvgLow&lt;/CODE&gt; (no need to &lt;CODE&gt;dedup&lt;/CODE&gt;)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;where&lt;/CODE&gt;: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Where"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Where&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 10 Sep 2013 11:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Condition/m-p/57966#M14165</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-09-10T11:49:55Z</dc:date>
    </item>
  </channel>
</rss>

