<?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 plot numeric value in a field on a google map in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/plot-numeric-value-in-a-field-on-a-google-map/m-p/58388#M14279</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I am trying to plot numeric value in a field on a google map.&lt;BR /&gt;
I can show the count of a field, but can not figure out how to show the value in field.&lt;/P&gt;

&lt;P&gt;e.g. results of intermediate search look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    myField lat         lng
1   0.0810  34.730268   136.508594
2   0.0660  35.021279   135.755635
3   0.080   33.249322   130.298799
4   0.065   34.691304   135.182995
5   0.0640  43.064278   141.346785
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and plot value in myField on _geo=lat,lng.&lt;BR /&gt;
Can anyone know how to do this?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2012 22:04:17 GMT</pubDate>
    <dc:creator>melonman</dc:creator>
    <dc:date>2012-09-12T22:04:17Z</dc:date>
    <item>
      <title>plot numeric value in a field on a google map</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-numeric-value-in-a-field-on-a-google-map/m-p/58388#M14279</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I am trying to plot numeric value in a field on a google map.&lt;BR /&gt;
I can show the count of a field, but can not figure out how to show the value in field.&lt;/P&gt;

&lt;P&gt;e.g. results of intermediate search look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    myField lat         lng
1   0.0810  34.730268   136.508594
2   0.0660  35.021279   135.755635
3   0.080   33.249322   130.298799
4   0.065   34.691304   135.182995
5   0.0640  43.064278   141.346785
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and plot value in myField on _geo=lat,lng.&lt;BR /&gt;
Can anyone know how to do this?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 22:04:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-numeric-value-in-a-field-on-a-google-map/m-p/58388#M14279</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2012-09-12T22:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: plot numeric value in a field on a google map</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-numeric-value-in-a-field-on-a-google-map/m-p/58389#M14280</link>
      <description>&lt;P&gt;Once you have Google Maps installed in Splunk you'll just need to do the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;your search&amp;gt; | eval _geo_count = tonumber(trim(myField)) |  eval _geo = latitude+","+longitude
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You set _geo for the lat/long and _geo_count for the value.  In the above example I am converting myField to a number.  You might not need that. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval _geo_count = myField | ... 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:25:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-numeric-value-in-a-field-on-a-google-map/m-p/58389#M14280</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2020-09-28T12:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: plot numeric value in a field on a google map</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-numeric-value-in-a-field-on-a-google-map/m-p/58390#M14281</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Only thing is _geo_count needs to be int, so in my case value * 1000 will do the job. Now I can plot many kind of data, like temperature, pressure, etc... &lt;/P&gt;

&lt;P&gt;I hope _geo_count can handle other number/text format as well.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:25:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-numeric-value-in-a-field-on-a-google-map/m-p/58390#M14281</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2020-09-28T12:25:53Z</dc:date>
    </item>
  </channel>
</rss>

