<?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 can I use Geolocation of a private IP space? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362714#M107154</link>
    <description>&lt;P&gt;I want to use the geostats feature but how do I do so on a private WAN and the syslog does not have Lat Long fields/raw data?  I have an eval that assigns a city to an address space, is there a way to tack onto this eval/lookup a way to plug in Lat and Long?  I don't mind having to manually input the Lat Long in the .csv, but I don't know how to make splunk read those fields in the lookup table and output the map with location.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 22:46:32 GMT</pubDate>
    <dc:creator>ShaunBaker</dc:creator>
    <dc:date>2018-02-08T22:46:32Z</dc:date>
    <item>
      <title>How can I use Geolocation of a private IP space?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362714#M107154</link>
      <description>&lt;P&gt;I want to use the geostats feature but how do I do so on a private WAN and the syslog does not have Lat Long fields/raw data?  I have an eval that assigns a city to an address space, is there a way to tack onto this eval/lookup a way to plug in Lat and Long?  I don't mind having to manually input the Lat Long in the .csv, but I don't know how to make splunk read those fields in the lookup table and output the map with location.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 22:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362714#M107154</guid>
      <dc:creator>ShaunBaker</dc:creator>
      <dc:date>2018-02-08T22:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use Geolocation of a private IP space?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362715#M107155</link>
      <description>&lt;P&gt;Well you can setup a lookup table that has all the subnets and necessary info like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IPv4Address                   SubnetMask                     City                               lat             lon         
203.25.11.0/24               255.255.255.0                    CityXYZ                       xxxx            yyyy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now create a lookup definition, say resolveIP, based on that .csv and add&lt;/P&gt;

&lt;P&gt;CIDR(IPv4Address) in the field "Match Type"&lt;/P&gt;

&lt;P&gt;in your search for map chart&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...your search | lookup resolveIP IPv4Address OUTPUT City lat lon | geostats maxzoomlevel=18 globallimit=0 count by City
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope that will help&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 23:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362715#M107155</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2018-02-08T23:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use Geolocation of a private IP space?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362716#M107156</link>
      <description>&lt;P&gt;Right, because the &lt;CODE&gt;lookup&lt;/CODE&gt; command would function as the &lt;CODE&gt;iplocation&lt;/CODE&gt; one..&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 01:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362716#M107156</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-02-11T01:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use Geolocation of a private IP space?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362717#M107157</link>
      <description>&lt;P&gt;@nabeel652, as a search optimization you should perform stats first... then lookup and finally geostats. This way data enrichment happens for aggregated field rather than all events.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;BaseSearch&amp;gt; 
| stats count by IPv4Address 
| lookup resolveIP IPv4Address OUTPUT City lat lon 
| geostats maxzoomlevel=18 globallimit=0 sum(count) by City
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Refer to documentation for this search optimization: &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Geostats#Usage"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Geostats#Usage&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 04:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362717#M107157</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-02-11T04:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use Geolocation of a private IP space?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362718#M107158</link>
      <description>&lt;P&gt;@niketnilay&lt;BR /&gt;
You’re right but that’s not what we’re focusing here. It may come under &lt;/P&gt;

&lt;P&gt;...your search | &lt;/P&gt;

&lt;P&gt;That I mentioned before the search. Anyway thanks for pointing out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 06:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-Geolocation-of-a-private-IP-space/m-p/362718#M107158</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2018-02-11T06:13:34Z</dc:date>
    </item>
  </channel>
</rss>

