<?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: Why do i get a no value in Country while using iplocation in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418272#M41025</link>
    <description>&lt;P&gt;when you run this command, do you still get empty country for one row?!?!&lt;BR /&gt;
&lt;CODE&gt;wall_time != NULL client_ipaddress != NULL |iplocation client_ipaddress| chart span=1w count  as RequestCount over Country | sort -RequestCount&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or simply, &lt;BR /&gt;
&lt;CODE&gt;wall_time != NULL client_ipaddress != NULL |iplocation client_ipaddress|table client_ipaddress, status, City, Country&lt;/CODE&gt;&lt;BR /&gt;
choose time as needed&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 06:19:49 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2018-08-22T06:19:49Z</dc:date>
    <item>
      <title>Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418270#M41023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;With the below query i am able to list the country and request count by response time split.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;wall_time != NULL client_ipaddress != NULL |iplocation client_ipaddress| eval Latency=case(wall_time&amp;lt;500, "0-0.5s", wall_time&amp;gt;=500 AND wall_time&amp;lt;1000, "0.5s-1s",wall_time&amp;gt;=1000 AND wall_time&amp;lt;3000, "1s-3s", wall_time&amp;gt;=3000 AND wall_time&amp;lt;6000, "3s-6s",THREAD_WALL_MS&amp;gt;=4000 AND wall_time&amp;lt;10000, "6s-10s",wall_time&amp;gt;=10000 AND wall_time&amp;lt;30000, "10s-30s", wall_time&amp;gt;=30000, "&amp;gt;=30s")| chart span=1w count  as RequestCount over Country by Latency | sort -RequestCount, -Latency  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the query seems to be resulting 1 row with no value for the country field. Why is it so ? Anything i am missing out ?&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5610i604A7B9A3F9B7D14/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418270#M41023</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2018-08-22T06:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418271#M41024</link>
      <description>&lt;P&gt;@sangs8788,&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;iplocation&lt;/STRONG&gt;: extracts location information from IP addresses by using 3rd-party databases. This command supports IPv4 and IPv6.&lt;/P&gt;

&lt;P&gt;The IP address that you specify in the &lt;CODE&gt;ip-address-fieldname&lt;/CODE&gt; argument, is looked up in the database. Fields from that database that contain location information are added to each event. The setting used for the &lt;CODE&gt;allfields&lt;/CODE&gt; argument determines which fields are added to the events.&lt;/P&gt;

&lt;P&gt;Because all the information might not be available for each IP address, an event can have empty field values.&lt;/P&gt;

&lt;P&gt;For IP addresses which do not have a location, such as internal addresses, no fields are added.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Iplocation#Description"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Iplocation#Description&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418271#M41024</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-08-22T06:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418272#M41025</link>
      <description>&lt;P&gt;when you run this command, do you still get empty country for one row?!?!&lt;BR /&gt;
&lt;CODE&gt;wall_time != NULL client_ipaddress != NULL |iplocation client_ipaddress| chart span=1w count  as RequestCount over Country | sort -RequestCount&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or simply, &lt;BR /&gt;
&lt;CODE&gt;wall_time != NULL client_ipaddress != NULL |iplocation client_ipaddress|table client_ipaddress, status, City, Country&lt;/CODE&gt;&lt;BR /&gt;
choose time as needed&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418272#M41025</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-08-22T06:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418273#M41026</link>
      <description>&lt;P&gt;Any ideas when the iplocations db was last updated?!?!&lt;/P&gt;

&lt;P&gt;the procedure to update iplocations database...&lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2014/07/22/updating-the-iplocation-db.html"&gt;https://www.splunk.com/blog/2014/07/22/updating-the-iplocation-db.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418273#M41026</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-08-22T06:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418274#M41027</link>
      <description>&lt;P&gt;@sangs8788 while you should definitely try updating iplocation as mentioned by @inventsekar, but you should still maintain a list of IPs without Geo Location details and either mark them with respective IP addresses or as Unknown when Country is not mapped.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418274#M41027</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-22T06:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418275#M41028</link>
      <description>&lt;P&gt;yes i do get. &lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418275#M41028</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2018-08-22T06:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418276#M41029</link>
      <description>&lt;P&gt;@inventsekar I am not sure on that. Have to check with Ops team since i dont have the permission. But we got upgraded our Splunk recently. So ideally shouldnt it be up-to-date ? &lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418276#M41029</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2018-08-22T06:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418277#M41030</link>
      <description>&lt;P&gt;@niketnilay I am trying to filter out few IPs by finding the location, but yea this sounds good for now. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418277#M41030</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2018-08-22T06:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418278#M41031</link>
      <description>&lt;P&gt;Is that even possible ? run time can do an eval for the country and set country name based on IP address which is not getting listed ? something like below &lt;CODE&gt;|eval Country = case(CLIENT_IP like "203.*", "Singapore", CLIENT_IP like "103.*", "China", CLIENT_IP like "199.*", "Czech Republic")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:38:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418278#M41031</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2018-08-22T06:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418279#M41032</link>
      <description>&lt;P&gt;GeoLite2 DB gets updated frequently, I just looked at recent version which is from 2018/08/07. So if your recent upgrade happened prior to that you would need to upgrade your MaxMind DB.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418279#M41032</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-22T06:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418280#M41033</link>
      <description>&lt;P&gt;ok. Let me check on that. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418280#M41033</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2018-08-22T08:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why do i get a no value in Country while using iplocation</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418281#M41034</link>
      <description>&lt;P&gt;Those IPs are not tagged with any location so they are coming blank. You can go through the description of iplocation command in below url: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Iplocation#Description"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Iplocation#Description&lt;/A&gt; . There they have mentioned - "Because all the information might not be available for each IP address, an event can have empty field values." . Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-do-i-get-a-no-value-in-Country-while-using-iplocation/m-p/418281#M41034</guid>
      <dc:creator>ManchitMalik</dc:creator>
      <dc:date>2018-08-22T08:37:15Z</dc:date>
    </item>
  </channel>
</rss>

