<?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 How do you use the where clause in a cluster map? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-where-clause-in-a-cluster-map/m-p/400476#M116031</link>
    <description>&lt;P&gt;I'm trying to make a cluster map in Splunk by their IP address. &lt;/P&gt;

&lt;P&gt;I grouped the IP by id number, and I want to only show the cluster which each an ID has more than 3 IP addressess.&lt;/P&gt;

&lt;P&gt;I have the following code:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="xxx"  id != "-"  | iplocation ip | geostats dc(ip) by id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I tried to make a variable name for dc(ip) (like dc(ip) as ipCount) so that I can use it in the where clause (where ipCount &amp;gt; 3), but unfortunately geostats doesn't allow me to rename.&lt;/P&gt;

&lt;P&gt;Does anybody know how or where to add a where clause or is there another way of making the map?&lt;/P&gt;

&lt;P&gt;Thank you  &lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 17:57:14 GMT</pubDate>
    <dc:creator>everynameIwanti</dc:creator>
    <dc:date>2018-11-21T17:57:14Z</dc:date>
    <item>
      <title>How do you use the where clause in a cluster map?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-where-clause-in-a-cluster-map/m-p/400476#M116031</link>
      <description>&lt;P&gt;I'm trying to make a cluster map in Splunk by their IP address. &lt;/P&gt;

&lt;P&gt;I grouped the IP by id number, and I want to only show the cluster which each an ID has more than 3 IP addressess.&lt;/P&gt;

&lt;P&gt;I have the following code:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="xxx"  id != "-"  | iplocation ip | geostats dc(ip) by id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I tried to make a variable name for dc(ip) (like dc(ip) as ipCount) so that I can use it in the where clause (where ipCount &amp;gt; 3), but unfortunately geostats doesn't allow me to rename.&lt;/P&gt;

&lt;P&gt;Does anybody know how or where to add a where clause or is there another way of making the map?&lt;/P&gt;

&lt;P&gt;Thank you  &lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 17:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-where-clause-in-a-cluster-map/m-p/400476#M116031</guid>
      <dc:creator>everynameIwanti</dc:creator>
      <dc:date>2018-11-21T17:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use the where clause in a cluster map?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-where-clause-in-a-cluster-map/m-p/400477#M116032</link>
      <description>&lt;P&gt;without testing, maybe something along those lines:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="xxx" id != "-" 
| eventstats dc(ip) as unique_ips by id 
| where unique_ips &amp;gt; 3
| iplocation ip | geostats max(unique_ips)  by id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 19:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-where-clause-in-a-cluster-map/m-p/400477#M116032</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-11-21T19:53:32Z</dc:date>
    </item>
  </channel>
</rss>

