<?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 Re: IPLOCATION displaying wrong Country in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567438#M197748</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/84762"&gt;@solarboyz1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The IP is a UK IP address.&lt;/P&gt;&lt;P&gt;As explained above, both queries are for the same unique IP but the Office365 query shows the IP as being in the US and the makeresults query shows the IP&amp;nbsp; as in UK (which is correct and the desired outcome)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an Office 365 dashboard map that shows successful logins by country but some of the results are wrong and we can't work out why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thing the mmdb file is correct as we are getting the desired outcome when using makeresults query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 14:05:39 GMT</pubDate>
    <dc:creator>nathanluke86</dc:creator>
    <dc:date>2021-09-17T14:05:39Z</dc:date>
    <item>
      <title>IPLOCATION displaying wrong Country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567402#M197727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having an issue with IPLOCATION displaying the wrong Country using the following query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="office365" sourcetype = o365* Workload=AzureActiveDirectory Operation=UserLoggedin ActorIpAddress=152.37.xxx.xxx | iplocation ActorIpAddress |table Country&lt;/P&gt;&lt;P&gt;Which shows the country is "United States"&lt;/P&gt;&lt;P&gt;Checked the web on different IP locators and all show the IP as UK which is the correct location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run this query:&lt;/P&gt;&lt;P&gt;| makeresults&lt;BR /&gt;| eval ip="152.37.xxx.xxx"&lt;BR /&gt;| iplocation ip&lt;BR /&gt;| table Country, ip&lt;/P&gt;&lt;P&gt;The country display as the UK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know what is causing this issue. I have updated the mmdb file to the latest release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 12:08:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567402#M197727</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2021-09-17T12:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: IPLOCATION displaying wrong Country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567418#M197735</link>
      <description>&lt;P&gt;The iplocation data returned from the&amp;nbsp;GeoLite2-City.mmdb&lt;SPAN&gt;&amp;nbsp;database file in&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;$SPLUNK_HOME/share/&lt;/P&gt;&lt;P&gt;You can update that file, or if you get a geoip subscription, you replace that file with one of the available data base files with more accuracy.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/SearchReference/Iplocation" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.2/SearchReference/Iplocation&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://dev.maxmind.com/geoip/updating-databases?lang=en" target="_blank" rel="noopener"&gt;https://dev.maxmind.com/geoip/updating-databases?lang=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 13:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567418#M197735</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2021-09-17T13:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: IPLOCATION displaying wrong Country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567424#M197740</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/84762"&gt;@solarboyz1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response,&lt;/P&gt;&lt;P&gt;I have updated the&amp;nbsp;&lt;SPAN&gt;GeoLite2-City.mmdb file in&amp;nbsp;$SPLUNK_HOME/share/. This has not made any difference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel its something to do with the query as when I use the following query the country displays as GB which is correct.&lt;/P&gt;&lt;P&gt;| makeresults&lt;BR /&gt;| eval ip="152.37.xx.xxx"&lt;BR /&gt;| iplocation ip&lt;BR /&gt;| table Country, ip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 13:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567424#M197740</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2021-09-17T13:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: IPLOCATION displaying wrong Country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567432#M197744</link>
      <description>&lt;P class="lia-align-justify"&gt;Depending on the subnet 152.37.xxx.xxx could be either US or UK&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The following returns US:&lt;/P&gt;&lt;P class="lia-align-justify"&gt;| eval ip="152.37.11.2"&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;The following returns UK:&lt;/P&gt;&lt;P class="lia-align-justify"&gt;| eval ip="152.37.111.2"&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;Do you have specific entries you are referring to?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 13:55:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567432#M197744</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2021-09-17T13:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: IPLOCATION displaying wrong Country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567438#M197748</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/84762"&gt;@solarboyz1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The IP is a UK IP address.&lt;/P&gt;&lt;P&gt;As explained above, both queries are for the same unique IP but the Office365 query shows the IP as being in the US and the makeresults query shows the IP&amp;nbsp; as in UK (which is correct and the desired outcome)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an Office 365 dashboard map that shows successful logins by country but some of the results are wrong and we can't work out why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thing the mmdb file is correct as we are getting the desired outcome when using makeresults query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567438#M197748</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2021-09-17T14:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: IPLOCATION displaying wrong Country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567448#M197753</link>
      <description>&lt;P&gt;&amp;nbsp;From what you are showing... both searches should be doing the exact some thing...which is looking up 152.37.xxx.xxx in the local geocities database.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If they are looking up the exact same values, and returning different countries...that sounds like a bug.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I mean, you could try something like:&lt;BR /&gt;&lt;BR /&gt;index=o365 sourcetype = o365* Workload=AzureActiveDirectory Operation=UserLoggedin ActorIpAddress=152.*&lt;BR /&gt;| iplocation prefix=IpLoc1_ ActorIpAddress&lt;BR /&gt;| eval ip=ActorIpAddress&lt;BR /&gt;| iplocation prefix=IpLoc2_ ip&lt;BR /&gt;| table ActorIpAddress IpLoc1_Country ip IpLoc2_Country&lt;BR /&gt;&lt;BR /&gt;Which is effectively running both the searches you had above and comparing them.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any chance there is a Country field in the Data already that's could be causing issues?&lt;BR /&gt;I have o365 data and don't see any, but that could cause an issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPLOCATION-displaying-wrong-Country/m-p/567448#M197753</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2021-09-17T14:51:14Z</dc:date>
    </item>
  </channel>
</rss>

