<?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 country code to Choropleth ? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/country-code-to-Choropleth/m-p/372791#M6103</link>
    <description>&lt;P&gt;I'm trying to get country codes in to the Choropleth map, but i'm a bit stuck.&lt;BR /&gt;
I'm using the following search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="someindex*" what=tagged | lookup geo_countries longitude as Longitude, latitude as Latitude | top limit=20 country_code  | rename country_code to country  | geom geo_countries featureIdField="country"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The output is as follows&lt;BR /&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/2673i0CDEAA038EA6AA77/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;How can I get the colors / numbers on the map with this set of data ?&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;Update  *&lt;/EM&gt;&lt;BR /&gt;
With the following query i'm able to get the stats in the map. Though since you cannot change the bin scale only the US is colored, while the rest of the world maps stays white.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="someindex*" what=tagged | stats count by country_code |  rename country_code AS iso2 |lookup geo_attr_countries iso2 OUTPUT country |  fields+ count, country, geom | geom geo_countries featureIdField="country"
&lt;/CODE&gt;&lt;/PRE&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/2674i7EFE7B80DCF33F77/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;regards,&lt;BR /&gt;
Pascal&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 10:11:16 GMT</pubDate>
    <dc:creator>posinga</dc:creator>
    <dc:date>2017-03-24T10:11:16Z</dc:date>
    <item>
      <title>country code to Choropleth ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/country-code-to-Choropleth/m-p/372791#M6103</link>
      <description>&lt;P&gt;I'm trying to get country codes in to the Choropleth map, but i'm a bit stuck.&lt;BR /&gt;
I'm using the following search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="someindex*" what=tagged | lookup geo_countries longitude as Longitude, latitude as Latitude | top limit=20 country_code  | rename country_code to country  | geom geo_countries featureIdField="country"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The output is as follows&lt;BR /&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/2673i0CDEAA038EA6AA77/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;How can I get the colors / numbers on the map with this set of data ?&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;Update  *&lt;/EM&gt;&lt;BR /&gt;
With the following query i'm able to get the stats in the map. Though since you cannot change the bin scale only the US is colored, while the rest of the world maps stays white.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="someindex*" what=tagged | stats count by country_code |  rename country_code AS iso2 |lookup geo_attr_countries iso2 OUTPUT country |  fields+ count, country, geom | geom geo_countries featureIdField="country"
&lt;/CODE&gt;&lt;/PRE&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/2674i7EFE7B80DCF33F77/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;regards,&lt;BR /&gt;
Pascal&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 10:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/country-code-to-Choropleth/m-p/372791#M6103</guid>
      <dc:creator>posinga</dc:creator>
      <dc:date>2017-03-24T10:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: country code to Choropleth ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/country-code-to-Choropleth/m-p/372792#M6104</link>
      <description>&lt;P&gt;Okay, you are trying to use 2-digit country_code but feeding them in as  country, which is a different field...&lt;/P&gt;

&lt;P&gt;Try this - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="someindex*" what=tagged 
| lookup geo_countries longitude as Longitude, latitude as Latitude OUTPUT country
| top limit=20 country 
| geom geo_countries featureIdField="country"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Reference- &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/378193/is-it-possible-to-use-a-countrycode-us-for-the-geo.html"&gt;https://answers.splunk.com/answers/378193/is-it-possible-to-use-a-countrycode-us-for-the-geo.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 21:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/country-code-to-Choropleth/m-p/372792#M6104</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-24T21:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: country code to Choropleth ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/country-code-to-Choropleth/m-p/372793#M6105</link>
      <description>&lt;P&gt;Error in 'lookup' command: Could not find all of the specified destination fields in the lookup table.&lt;BR /&gt;
The search job has failed due to an error. You may be able view the job in the Job Inspector.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 08:32:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/country-code-to-Choropleth/m-p/372793#M6105</guid>
      <dc:creator>posinga</dc:creator>
      <dc:date>2017-03-25T08:32:41Z</dc:date>
    </item>
  </channel>
</rss>

