<?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 Problem with iplocation showing multiple City and Country fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-iplocation-showing-multiple-City-and-Country-fields/m-p/96545#M24939</link>
    <description>&lt;P&gt;I'm getting unusual results when invoking the &lt;STRONG&gt;iplocation&lt;/STRONG&gt; command (listed below).  When the table is displayed it marks all results as Private IP space.  However in the "other interesting fields" side bar I see multiple City/Country values with an interger appended.  For example Country3 with 2 countries (Finland and United States).  How can I correct the results of iplocation so that it consolidates City and Country into their respective fields?&lt;/P&gt;

&lt;P&gt;Query: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="pfsense_pf" fw_action="block" AND interface="vr1" | iplocation | table src_ip, City, Country
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1   73.98.34.1  (Private Address)   (Private Address) (XX)
2   73.98.34.1  (Private Address)   (Private Address) (XX)
3   73.98.34.1  (Private Address)   (Private Address) (XX)
4   73.98.34.1  (Private Address)   (Private Address) (XX)
5   73.98.34.1  (Private Address)   (Private Address) (XX)
6   73.98.34.1  (Private Address)   (Private Address) (XX)
7   73.98.34.1  (Private Address)   (Private Address) (XX)
8   73.98.34.1  (Private Address)   (Private Address) (XX)
9   73.98.34.1  (Private Address)   (Private Address) (XX)
10  73.98.34.1  (Private Address)   (Private Address) (XX)

Other interesting fields (42)
City (1)
City1 (1)
City2 (1)
City3 (2)
City4 (1)
City5 (6)
City6 (1)
City7 (3)
City8 (1)
Country (1)
Country1 (1)
Country2 (1)
Country3 (2)
Country4 (1)
Country5 (2)
Country6 (1)
Country7 (2)
Country8 (1)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Oct 2011 00:30:12 GMT</pubDate>
    <dc:creator>pstutz</dc:creator>
    <dc:date>2011-10-24T00:30:12Z</dc:date>
    <item>
      <title>Problem with iplocation showing multiple City and Country fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-iplocation-showing-multiple-City-and-Country-fields/m-p/96545#M24939</link>
      <description>&lt;P&gt;I'm getting unusual results when invoking the &lt;STRONG&gt;iplocation&lt;/STRONG&gt; command (listed below).  When the table is displayed it marks all results as Private IP space.  However in the "other interesting fields" side bar I see multiple City/Country values with an interger appended.  For example Country3 with 2 countries (Finland and United States).  How can I correct the results of iplocation so that it consolidates City and Country into their respective fields?&lt;/P&gt;

&lt;P&gt;Query: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="pfsense_pf" fw_action="block" AND interface="vr1" | iplocation | table src_ip, City, Country
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1   73.98.34.1  (Private Address)   (Private Address) (XX)
2   73.98.34.1  (Private Address)   (Private Address) (XX)
3   73.98.34.1  (Private Address)   (Private Address) (XX)
4   73.98.34.1  (Private Address)   (Private Address) (XX)
5   73.98.34.1  (Private Address)   (Private Address) (XX)
6   73.98.34.1  (Private Address)   (Private Address) (XX)
7   73.98.34.1  (Private Address)   (Private Address) (XX)
8   73.98.34.1  (Private Address)   (Private Address) (XX)
9   73.98.34.1  (Private Address)   (Private Address) (XX)
10  73.98.34.1  (Private Address)   (Private Address) (XX)

Other interesting fields (42)
City (1)
City1 (1)
City2 (1)
City3 (2)
City4 (1)
City5 (6)
City6 (1)
City7 (3)
City8 (1)
Country (1)
Country1 (1)
Country2 (1)
Country3 (2)
Country4 (1)
Country5 (2)
Country6 (1)
Country7 (2)
Country8 (1)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Oct 2011 00:30:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-iplocation-showing-multiple-City-and-Country-fields/m-p/96545#M24939</guid>
      <dc:creator>pstutz</dc:creator>
      <dc:date>2011-10-24T00:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with iplocation showing multiple City and Country fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-iplocation-showing-multiple-City-and-Country-fields/m-p/96546#M24940</link>
      <description>&lt;P&gt;iplocation is actually a Python script.  So you could make a custom version of the script, and have it return the results in a different way.&lt;/P&gt;

&lt;P&gt;There is more info in some of the other answers (such as &lt;A href="http://splunk-base.splunk.com/answers/37249/specifying-field-w-iplocation?page=1&amp;amp;focusedAnswerId=37370#37370"&gt;this one&lt;/A&gt;) and in the Developer Manual&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2012 05:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-iplocation-showing-multiple-City-and-Country-fields/m-p/96546#M24940</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-01-01T05:53:18Z</dc:date>
    </item>
  </channel>
</rss>

