<?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: Is it possible to show country names instead of latitude and longitude values in the pop-ups on Splunk maps? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171946#M49279</link>
    <description>&lt;P&gt;Hi HattrickNZ,&lt;/P&gt;

&lt;P&gt;you can concatenate the strings used in the &lt;CODE&gt;by&lt;/CODE&gt; clause of &lt;CODE&gt;geostats&lt;/CODE&gt;. I used something like this in a private app, showing new moon dates for places on the map:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval dates=NewMoon_starts." - ".NewMoon_ends 
| other splunk foo
| geostats latfield=Latitude longfield=Longitude count by dates
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and it shows like this:&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/558i2C0EEDCCAA292CD8/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;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Sun, 30 Aug 2015 22:47:38 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2015-08-30T22:47:38Z</dc:date>
    <item>
      <title>Is it possible to show country names instead of latitude and longitude values in the pop-ups on Splunk maps?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171943#M49276</link>
      <description>&lt;P&gt;In the pic below, is there a way that you can display the country name in the pop up instead of the lat and long values?&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/559iD0766EAB930B5BE3/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;&lt;STRONG&gt;EDIT1 trying to answer woodcocks comment below&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The stats that feed the above pic look as follows: (it is taken from Splunk 6.x Dashboard Examples)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;geobin  latitude    longitude   GET POST
bin_id_zl_0_y_3_x_2 -10.00000   -55.00000   8   6
bin_id_zl_0_y_4_x_1 19.43420    -99.13860   5   2
bin_id_zl_0_y_4_x_2 11.37778    -73.14076   12  6
bin_id_zl_0_y_4_x_5 16.67630    77.27630    12  7
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The stats that feed the map I am working on looks like this: (but i get the same view with lat and long on the popup as above)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;latitude    longitude   NumberofRegisteredSubscribers   ks_countryname
-25.274398  133.775136  1442    Australia
37.09024    -95.712891  662 United States
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Similar questions here &lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/129281/map-geostats-display-city-instead-of-latitude-and-longitude.html"&gt;http://answers.splunk.com/answers/129281/map-geostats-display-city-instead-of-latitude-and-longitude.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/302088/splunk-625-label-the-maps-popup.html"&gt;https://answers.splunk.com/answers/302088/splunk-625-label-the-maps-popup.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 01:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171943#M49276</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-08-17T01:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show country names instead of latitude and longitude values in the pop-ups on Splunk maps?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171944#M49277</link>
      <description>&lt;P&gt;You need to tell us what is generating the latitude and longitude values.  Usually this system/DB/lookup is the one that maps to country.  Are you using &lt;CODE&gt;iplocation&lt;/CODE&gt; or something else?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171944#M49277</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-17T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show country names instead of latitude and longitude values in the pop-ups on Splunk maps?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171945#M49278</link>
      <description>&lt;P&gt;the lat and long values are in a lookup that looks like the following: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup countries_lat_long_int_code.csv&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;code    country latitude    longitude   name
376 AD  42.546245   1.601554    Andorra
971 AE  23.424076   53.847818   United Arab Emirates
93  AF  33.93911    67.709953   Afghanistan
355 AL  41.153332   20.168331   Albania
374 AM  40.069099   45.038189   Armenia
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Based on this how would I achieve my original question&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2015 22:32:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171945#M49278</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-08-30T22:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show country names instead of latitude and longitude values in the pop-ups on Splunk maps?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171946#M49279</link>
      <description>&lt;P&gt;Hi HattrickNZ,&lt;/P&gt;

&lt;P&gt;you can concatenate the strings used in the &lt;CODE&gt;by&lt;/CODE&gt; clause of &lt;CODE&gt;geostats&lt;/CODE&gt;. I used something like this in a private app, showing new moon dates for places on the map:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval dates=NewMoon_starts." - ".NewMoon_ends 
| other splunk foo
| geostats latfield=Latitude longfield=Longitude count by dates
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and it shows like this:&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/558i2C0EEDCCAA292CD8/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;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2015 22:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171946#M49279</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-08-30T22:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show country names instead of latitude and longitude values in the pop-ups on Splunk maps?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171947#M49280</link>
      <description>&lt;P&gt;Here are 2 options, assuming &lt;CODE&gt;GET&lt;/CODE&gt; and &lt;CODE&gt;POST&lt;/CODE&gt; are in a field called &lt;CODE&gt;http_req&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval http_req = country . "-" . http_req | geostats latfield=Latitude longfield=Longitude count by http_req

... | append [|inputlookup countries_lat_long_int_code.csv| eval http_req = country ] | geostats latfield=Latitude longfield=Longitude count by http_req
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Aug 2015 02:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171947#M49280</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-31T02:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to show country names instead of latitude and longitude values in the pop-ups on Splunk maps?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171948#M49281</link>
      <description>&lt;P&gt;Splunk 6.3 introduced Choropleth Maps as a new visualization type. &lt;CODE&gt;iplocation&lt;/CODE&gt; adds a &lt;CODE&gt;Country&lt;/CODE&gt; field, which you can use to show a metric on a Choropleth map. If you can't use &lt;CODE&gt;iplocation&lt;/CODE&gt;, you can resolve a latitude/longitude combination to find out which country the coordinate is located in. The tooltip then shows the country name when you hover over it.&lt;/P&gt;

&lt;P&gt;For your data the search would look something like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;IPs exist to use with &lt;CODE&gt;iplocation&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| iplocation clientip
| stats count as NumberofRegisteredSubscribers by Region
| geom geo_countries featureIdField=Region
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;No IPs to use with &lt;CODE&gt;iplocation&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| lookup geo_countries latitude longitude OUTPUT featureId AS ks_countryname
| stats count as NumberofRegisteredSubscribers by ks_countryname
| geom geo_countries featureIdField=ks_countryname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can find more information on Choropleth Maps and Geospatial Indexes in the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Viz/Choroplethmaps"&gt;Splunk Docs for 6.3&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 23:15:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-show-country-names-instead-of-latitude-and/m-p/171948#M49281</guid>
      <dc:creator>mporath_splunk</dc:creator>
      <dc:date>2015-09-28T23:15:36Z</dc:date>
    </item>
  </channel>
</rss>

