<?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 Using where in search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-where-in-search/m-p/480538#M134663</link>
    <description>&lt;P&gt;I have the following search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="pan" (dest_ip="192.168.*" AND NOT src_ip="192.168.*" AND NOT src_location="AU" AND NOT src_location="*-*" ) 
| chart count by src_location,action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This results in a nice stacked column chart showing actions (allowed &amp;amp; blocked) per src_location.&lt;BR /&gt;
What I need to do is only show those src_locations where the total count (allowed + blocked) is greater than a specific value (eg totalCount &amp;gt;= 500).&lt;/P&gt;

&lt;P&gt;I have tried using separate &lt;STRONG&gt;stats count by [field] as [name]&lt;/STRONG&gt; statements then using eval to add them together but I can't get the results I'm wanting which is the stacked column graph by src_location showing allowed &amp;amp; blocked.&lt;/P&gt;

&lt;P&gt;Any suggestions greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:10:58 GMT</pubDate>
    <dc:creator>balcv</dc:creator>
    <dc:date>2020-09-30T02:10:58Z</dc:date>
    <item>
      <title>Using where in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-where-in-search/m-p/480538#M134663</link>
      <description>&lt;P&gt;I have the following search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="pan" (dest_ip="192.168.*" AND NOT src_ip="192.168.*" AND NOT src_location="AU" AND NOT src_location="*-*" ) 
| chart count by src_location,action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This results in a nice stacked column chart showing actions (allowed &amp;amp; blocked) per src_location.&lt;BR /&gt;
What I need to do is only show those src_locations where the total count (allowed + blocked) is greater than a specific value (eg totalCount &amp;gt;= 500).&lt;/P&gt;

&lt;P&gt;I have tried using separate &lt;STRONG&gt;stats count by [field] as [name]&lt;/STRONG&gt; statements then using eval to add them together but I can't get the results I'm wanting which is the stacked column graph by src_location showing allowed &amp;amp; blocked.&lt;/P&gt;

&lt;P&gt;Any suggestions greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-where-in-search/m-p/480538#M134663</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2020-09-30T02:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using where in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-where-in-search/m-p/480539#M134664</link>
      <description>&lt;P&gt;@balcv ,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="pan" (dest_ip="192.168.*" AND NOT src_ip="192.168.*" AND NOT src_location="AU" AND NOT src_location="*-*" ) 
| chart count by src_location,action
| addtotals row=true fieldname=totalCount | where totalCount &amp;gt;= 500|fields - totalCount
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Sep 2019 03:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-where-in-search/m-p/480539#M134664</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-09-13T03:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using where in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-where-in-search/m-p/480540#M134665</link>
      <description>&lt;P&gt;Awesome.  Thanks for that @renjith.nair&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 03:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-where-in-search/m-p/480540#M134665</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-09-13T03:32:44Z</dc:date>
    </item>
  </channel>
</rss>

