<?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 splunk where condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/splunk-where-condition/m-p/253634#M75920</link>
    <description>&lt;P&gt;I have a sample query that i need to apply a where condition to: &lt;/P&gt;

&lt;P&gt;index="web" host="blah*" sourcetype="jboss:serverLog" "want 0 out of number from CaCHE "&lt;/P&gt;

&lt;P&gt;I need to apply a where condition to see the number greater than 100 in the above query &lt;/P&gt;

&lt;P&gt;something like this, from below, i need to apply a where clause to show only those transactions where that number (20,40,60,120) is greater than 100&lt;/P&gt;

&lt;P&gt;index="web" host="wjb2*ksc14*" sourcetype="jboss:serverLog" "Fetched 0 Browse Offers out of 20"&lt;BR /&gt;
index="web" host="wjb2*ksc14*" sourcetype="jboss:serverLog" "Fetched 0 Browse Offers out of 40"&lt;BR /&gt;
index="web" host="wjb2*ksc14*" sourcetype="jboss:serverLog" "Fetched 0 Browse Offers out of 60"&lt;BR /&gt;
index="web" host="wjb2*ksc14*" sourcetype="jboss:serverLog" "Fetched 0 Browse Offers out of 120"    &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:08:49 GMT</pubDate>
    <dc:creator>rakeshreddy123</dc:creator>
    <dc:date>2020-09-29T09:08:49Z</dc:date>
    <item>
      <title>splunk where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-where-condition/m-p/253634#M75920</link>
      <description>&lt;P&gt;I have a sample query that i need to apply a where condition to: &lt;/P&gt;

&lt;P&gt;index="web" host="blah*" sourcetype="jboss:serverLog" "want 0 out of number from CaCHE "&lt;/P&gt;

&lt;P&gt;I need to apply a where condition to see the number greater than 100 in the above query &lt;/P&gt;

&lt;P&gt;something like this, from below, i need to apply a where clause to show only those transactions where that number (20,40,60,120) is greater than 100&lt;/P&gt;

&lt;P&gt;index="web" host="wjb2*ksc14*" sourcetype="jboss:serverLog" "Fetched 0 Browse Offers out of 20"&lt;BR /&gt;
index="web" host="wjb2*ksc14*" sourcetype="jboss:serverLog" "Fetched 0 Browse Offers out of 40"&lt;BR /&gt;
index="web" host="wjb2*ksc14*" sourcetype="jboss:serverLog" "Fetched 0 Browse Offers out of 60"&lt;BR /&gt;
index="web" host="wjb2*ksc14*" sourcetype="jboss:serverLog" "Fetched 0 Browse Offers out of 120"    &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-where-condition/m-p/253634#M75920</guid>
      <dc:creator>rakeshreddy123</dc:creator>
      <dc:date>2020-09-29T09:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: splunk where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-where-condition/m-p/253635#M75921</link>
      <description>&lt;P&gt;You would need to extract that number as a field and then apply a filter based on that. Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="web" host="wjb2*ksc14*" sourcetype="jboss:serverLog" "Fetched 0 Browse Offers out of" | rex "Fetched 0 Browse Offers out of (?&amp;lt;fetchcount&amp;gt;\d+)" | where fetchcount&amp;gt;100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A better option would be save this field extraction in the props.conf so that you directly filter in the base search.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 20:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-where-condition/m-p/253635#M75921</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-17T20:04:35Z</dc:date>
    </item>
  </channel>
</rss>

