<?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: How to create geo map from manually extracted values ? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510274#M2739</link>
    <description>The geostats needs positive numbers, not strings, to display.</description>
    <pubDate>Tue, 21 Jul 2020 18:59:58 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-07-21T18:59:58Z</dc:date>
    <item>
      <title>How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510243#M2737</link>
      <description>&lt;P&gt;I want to create geo map using 'geostats' command and am extracting and assigning country, latitude and longitude using eval command.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source log file:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Application_Name&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Transaction_Name&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;NP_DEV_AU&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Homepage&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;NP_DEV_VN&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Homepage&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;NP_DEV_AU&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Login&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;NP_DEV_HK&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Homepage&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;NP_DEV_ID&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Login&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;NP_DEV_ID&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Homepage&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;NP_DEV_VN&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Login&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;NP_DEV_HK&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Login&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my query.&lt;/P&gt;&lt;P&gt;index=foo host=ab03u source=*sm.log sourcetype=bol_logs&lt;BR /&gt;| rex field=Application_Name "NP_DEV_(?&amp;lt;Market&amp;gt;\w+.*)"&lt;BR /&gt;| rex field=Application_Name "NP_DEV_(?&amp;lt;Market&amp;gt;\w+.*)"&lt;BR /&gt;| eval Country=case(Market=="HK","Hong Kong", Market=="TH","Thailand", Market=="VN","Vietnam", Market=="AU","Australia", Market=="ID","Indonesia", Market=="PH","Philippines", Market=="MY","Malaysia", Market=="SG","Singapore", Market=="CN","China")&lt;BR /&gt;| chart values(Status) by Country,Transaction_Name&lt;BR /&gt;| eval Result=case((Homepage!=Login), "Failure", (Homepage==0 AND Login==0), "Success", (Homepage==1 AND Login==1), "Failure")&lt;BR /&gt;| eval latitude=case(Country=="Hong Kong","22.396428", Country=="Thailand","15.870032", Country=="Vietnam","14.058324", Country=="Australia","-25.274398", Country=="Indonesia","-0.789275", Country=="Philippines","12.879721", Country=="Malaysia","4.210484", Country=="Singapore","1.352083", Country=="China","35.86166")&lt;BR /&gt;| eval longitude=case(Country=="Hong Kong","114.109497", Country=="Thailand","100.992541", Country=="Vietnam","108.277199", Country=="Australia","133.775136", Country=="Indonesia","113.921327", Country=="Philippines","121.774017", Country=="Malaysia","101.975766", Country=="Singapore","103.819836", Country=="China","104.195397")&lt;BR /&gt;| geostats latfield=latitude longfield=longitude values(Result) by Country&lt;/P&gt;&lt;P&gt;So, my final output will be,&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Country&lt;/TD&gt;&lt;TD width="50%"&gt;Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Australia&lt;/TD&gt;&lt;TD width="50%"&gt;Failure&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Vietnam&lt;/TD&gt;&lt;TD width="50%"&gt;Success&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Hong Kong&lt;/TD&gt;&lt;TD width="50%"&gt;Failure&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Indonesia&lt;/TD&gt;&lt;TD width="50%"&gt;Success&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;From this table i want to create one geo map using 'geostats' command, output should be in bubbles. and whichever country having 'Failure' as the Result, it should shows in red color bubble &amp;amp; success should be in green color bubble.&lt;/P&gt;&lt;P&gt;When i used above query, it's not showing any result for cluster map.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/40390"&gt;@skakehi_splunk&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64317"&gt;@rnowitzki&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;..Need all your expertise on this.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 14:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510243#M2737</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2020-07-21T14:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510274#M2739</link>
      <description>The geostats needs positive numbers, not strings, to display.</description>
      <pubDate>Tue, 21 Jul 2020 18:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510274#M2739</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-21T18:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510345#M2740</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;I converted my output to numbers. Now, '0' means success, '1' means failure. and the requirement is to color it according to the values.&lt;/P&gt;&lt;P&gt;0 - Green color&lt;/P&gt;&lt;P&gt;1 - Red color&lt;/P&gt;&lt;P&gt;I have used below, but it's not helping.&lt;/P&gt;&lt;P&gt;&amp;lt;option name="mapping.fieldColors"&amp;gt;{"0":0x00FF00,"1":0xFF0000}&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;Please suggest how to achieve this.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 05:54:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510345#M2740</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2020-07-22T05:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510421#M2743</link>
      <description>"It's not helping" what, exactly?&lt;BR /&gt;In my tests, zero values did not produce graphics, hence the "positive numbers" in my reply.</description>
      <pubDate>Wed, 22 Jul 2020 12:41:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510421#M2743</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-22T12:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510426#M2744</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;Yes, you're correct. "0" is not giving graph.&lt;/P&gt;&lt;P&gt;So, I have assigned "1" is for 'Success' and "2" is for 'Failure'.&lt;/P&gt;&lt;P&gt;Now i want to color my bubble according to values. If it's 1, bubble should be in green color and if it's 2, it should be in red.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 12:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510426#M2744</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2020-07-22T12:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510446#M2745</link>
      <description>I have not been successful specifying colors for a pie chart since the Advanced XML days. The Visualization manual does not list a way to do it.</description>
      <pubDate>Wed, 22 Jul 2020 13:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510446#M2745</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-22T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510600#M2764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/63450"&gt;@georgear7&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I think I have what you need.&lt;BR /&gt;&lt;BR /&gt;This SPL makes up some sample data of yours and puts it on a map:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval "Country" = "Australia Vietnam HongKong Indonesia"
| makemv Country
| mvexpand Country
| eval Result = case(Country="Australia",2,Country="Vietnam",1,Country="HongKong",2, Country="Indonesia",1)
| eval latitude=case(Country=="HongKong","22.396428", Country=="Vietnam","14.058324", Country=="Australia","-25.274398", Country=="Indonesia","-0.789275")
| eval longitude=case(Country=="HongKong","114.109497", Country=="Vietnam","108.277199", Country=="Australia","133.775136", Country=="Indonesia","113.921327")
| geostats latfield=latitude longfield=longitude count by Result&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;=&amp;gt; Save it as Dashboard Panel and edit the source.&lt;BR /&gt;=&amp;gt; Add this to the Options:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;option name="mapping.fieldColors"&amp;gt;{"1":"0x65a637","2":"0xd93f3c"}&amp;lt;/option&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Et voila:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="geostats_colors_test.PNG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9838iBAD45292CF07CCD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="geostats_colors_test.PNG" alt="geostats_colors_test.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 08:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/510600#M2764</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-07-23T08:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/511368#M2838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64317"&gt;@rnowitzki&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your efforts in getting this, i can able to color the bubble now.&lt;/P&gt;&lt;P&gt;One more help i need from you regarding changing the size of the map. If you look at the countries which i mentioned in query, those are belongs to Asia and Australia continent. So i want to show those countries region only in my map without manually zooming it every time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to this reason, countries like Hong Kong, Thailand, Vietnam are coming as a big bubble when we are not zooming in.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:47:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/511368#M2838</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2020-07-28T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/511371#M2839</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/63450"&gt;@georgear7&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;This can be done with:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        &amp;lt;option name="mapping.map.center"&amp;gt;(14,100)&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.scrollZoom"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.zoom"&amp;gt;4&amp;lt;/option&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I tried to set it around "your" countries", if not close enough, play around with the lat/long of the map.center&amp;nbsp;and map.zoom option to set is as needed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/511371#M2839</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-07-28T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create geo map from manually extracted values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/511381#M2841</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64317"&gt;@rnowitzki&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is perfectly working fine, thanks a bunch for all your help. Much appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-geo-map-from-manually-extracted-values/m-p/511381#M2841</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2020-07-28T16:09:26Z</dc:date>
    </item>
  </channel>
</rss>

