<?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: Displaying City in Splunk 6 map tooltip in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178350#M11038</link>
    <description>&lt;P&gt;I'm seeing the same problem as well.  I believe the documentation says you should be able to use AS and BY in the same geostats, but it doesn't seem to work.&lt;/P&gt;

&lt;P&gt;geostats sum(accepted),sum(denied),sum(unapproved) by app   works&lt;BR /&gt;
geostats sum(accepted) as accepted,sum(denied) as denied,sum(unapproved) as unapproved by app  fails&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2015 15:32:35 GMT</pubDate>
    <dc:creator>wweiland</dc:creator>
    <dc:date>2015-03-05T15:32:35Z</dc:date>
    <item>
      <title>Displaying City in Splunk 6 map tooltip</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178347#M11035</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I using iplocation followed by geostats to plot my data in map. My query looks like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index_name | iplocation ip_address | geostats first(item_number) as Item
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The query works fine and I get the value and label of the field Item in map marker tool tip.&lt;/P&gt;

&lt;P&gt;Now I just try to display the City name along with the field like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index_name | iplocation ip_address | geostats first(City) as City first(item_number) as Item
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search works fine and displays results in search page along with City name. But when used in map it does not display the field City in marker's tool tip.&lt;/P&gt;

&lt;P&gt;I even assigned the value in City field to a different field using eval and tried to display that field but it did not work.&lt;/P&gt;

&lt;P&gt;I cannot use &lt;STRONG&gt;by City&lt;/STRONG&gt; like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index_name | iplocation ip_address | geostats first(item_number) as Item by City
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;because geostats does not allow aliases if I use group by. I get his error in search page &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'geostats' command: The argument 'Item' is invalid. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas on how to display City name ? Any help is appreciated.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2014 14:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178347#M11035</guid>
      <dc:creator>immortalraghava</dc:creator>
      <dc:date>2014-05-26T14:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying City in Splunk 6 map tooltip</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178348#M11036</link>
      <description>&lt;P&gt;I had a similar situation. I wanted to count by two fields but geostats would not allow that. So I created a new field combining the two fields I needed and did my count by the new field and it worked. Here is part of a sample search.&lt;/P&gt;

&lt;P&gt;...
| eval CountInfo=DateTime.": ".Location
| table DateTime, Location, CountInfo
| geostats latfield=lat longfield=lon count by CountInfo&lt;/P&gt;

&lt;P&gt;The resulting tooltip included both the date and time info as well as the location. Exactly what I wanted.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:58:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178348#M11036</guid>
      <dc:creator>kmattern</dc:creator>
      <dc:date>2014-07-30T15:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying City in Splunk 6 map tooltip</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178349#M11037</link>
      <description>&lt;P&gt;Hi  i tried the similar method and was successful in bringing city name to tooltip, but the issue is am getting different colors for different cities i need it to display the color of city based on severity,, the query goes like .."eval sev=case(units&amp;gt;=120,"sev1",units&amp;lt;120 AND units&amp;gt;=50,"sev2",units&amp;lt;25,"sev3") |  eval new_field=city.": ".sev | geostats globallimit=0 latfield=latitude longfield=longitude count by new_field&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178349#M11037</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2020-09-28T18:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying City in Splunk 6 map tooltip</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178350#M11038</link>
      <description>&lt;P&gt;I'm seeing the same problem as well.  I believe the documentation says you should be able to use AS and BY in the same geostats, but it doesn't seem to work.&lt;/P&gt;

&lt;P&gt;geostats sum(accepted),sum(denied),sum(unapproved) by app   works&lt;BR /&gt;
geostats sum(accepted) as accepted,sum(denied) as denied,sum(unapproved) as unapproved by app  fails&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 15:32:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178350#M11038</guid>
      <dc:creator>wweiland</dc:creator>
      <dc:date>2015-03-05T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying City in Splunk 6 map tooltip</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178351#M11039</link>
      <description>&lt;P&gt;This app will be helpful:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/3124/"&gt;https://splunkbase.splunk.com/app/3124/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 09:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Displaying-City-in-Splunk-6-map-tooltip/m-p/178351#M11039</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2018-12-04T09:04:25Z</dc:date>
    </item>
  </channel>
</rss>

