<?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 Is it possible to use a countrycode &amp;quot;US&amp;quot; for the geom command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239819#M188768</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;is it possible to use countrycodes like US, GB, CN for the geom command instead of ip or long/lat?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Heinz&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2016 14:25:36 GMT</pubDate>
    <dc:creator>HeinzWaescher</dc:creator>
    <dc:date>2016-03-10T14:25:36Z</dc:date>
    <item>
      <title>Is it possible to use a countrycode "US" for the geom command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239819#M188768</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;is it possible to use countrycodes like US, GB, CN for the geom command instead of ip or long/lat?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Heinz&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239819#M188768</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2016-03-10T14:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a countrycode "US" for the geom command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239820#M188769</link>
      <description>&lt;P&gt;Yes, you need one step in between though.&lt;BR /&gt;
The default &lt;CODE&gt;geo_countries&lt;/CODE&gt; geospatial lookup has a &lt;CODE&gt;featureId&lt;/CODE&gt; based on the English name of the country, so you will have to map your ISO2(?) codes to that using the default &lt;CODE&gt;geo_attr_countries&lt;/CODE&gt; lookup like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count | eval iso2 = "US GB DE" | makemv iso2 | mvexpand iso2 | streamstats count
| lookup geo_attr_countries iso2 OUTPUT country
| geom geo_countries featureIdField="country"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;First line sets up dummy data, second line does the conversion, third line calls &lt;CODE&gt;geom&lt;/CODE&gt;. Visualize using Choropleth for pretty colours.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 22:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239820#M188769</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-03-10T22:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a countrycode "US" for the geom command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239821#M188770</link>
      <description>&lt;P&gt;The example works fine for me, but my search does not for some reason.&lt;/P&gt;

&lt;P&gt;| stats count by geoip_country_code&lt;BR /&gt;
| rename geoip_country_code AS iso2&lt;BR /&gt;
| lookup geo_attr_countries iso2 OUTPUT country&lt;BR /&gt;
| geom geo_countries featureIdField="country"&lt;/P&gt;

&lt;P&gt;The statistics tab shows a correct country column and a filled geom column. But the Choropleth doesn't show the data. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239821#M188770</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2020-09-29T09:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a countrycode "US" for the geom command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239822#M188771</link>
      <description>&lt;P&gt;Is there any legend in the bottom right of the Choropleth map?&lt;BR /&gt;
Any difference between the tables generated by my example and your tables?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 23:14:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239822#M188771</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-03-11T23:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a countrycode "US" for the geom command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239823#M188772</link>
      <description>&lt;P&gt;It seems, that there have been to many fields in the output of my search.&lt;/P&gt;

&lt;P&gt;Using &lt;EM&gt;| fields+ count, country, geom&lt;/EM&gt; before the geom command works fine now.&lt;BR /&gt;
Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 09:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-countrycode-quot-US-quot-for-the-geom/m-p/239823#M188772</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2016-03-21T09:50:04Z</dc:date>
    </item>
  </channel>
</rss>

