<?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 do i Map out data on Google Maps in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-Map-out-data-on-Google-Maps/m-p/24709#M4584</link>
    <description>&lt;P&gt;It appears as though using geonormalize command isn't working for you.  You could do an eval on _geo and pipe it to a table to see if you are actually getting anything. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval mygeo = _geo | table mygeo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or try building the _geo field yourself as you see below:&lt;/P&gt;

&lt;P&gt;Use existing geolocation information available in search results&lt;/P&gt;

&lt;P&gt;It's common case that events already contain geo information.&lt;BR /&gt;
The geonormalize command&lt;/P&gt;

&lt;P&gt;The geonormalize command can detect existing fields containing the geoinformation and normalizes them for the GoogleMaps module. For doing this the command searches for field pairs (a latitude field and a longitude field) matching a name scheme. The values of those fields are then merged and emitted as the _geo field. The following name schemes are supported:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*lat/*lng
*lat/*lon
*latitude/*longitude
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So for example when an event has the fields gps_lat=47.11 and gps_lon=0.815 the geonormalize command will detect those fields and emit the _geo field with the value 47.11,0.815.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
sourcetype=device_tracking device_id=A47C08B13 | geonormalize&lt;BR /&gt;
Manual building the _geo field&lt;/P&gt;

&lt;P&gt;If you don't want to use the geonormalize command or if the location fields do not match any naming scheme, you can manually build the _geo field.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
eventtype=phone_activation | eval _geo=phone_loc_1+","+phone_loc_2&lt;BR /&gt;
(Assuming that phone_loc_1 contains the latitude and phone_loc_2 contains the longitude)&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:50:30 GMT</pubDate>
    <dc:creator>sdaniels</dc:creator>
    <dc:date>2020-09-28T13:50:30Z</dc:date>
    <item>
      <title>How do i Map out data on Google Maps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-Map-out-data-on-Google-Maps/m-p/24708#M4583</link>
      <description>&lt;P&gt;Hi everyone, I am very new to splunk and im trying to map out some car park relevant data on Google Maps app but to no avail. Do I need to do any other configurations for it to work? I tried these searches:&lt;/P&gt;

&lt;P&gt;sourcetype="ltaCarpark" | head 25 | rename entry.content.m:properties.d:Latitude As latitude | rename entry.content.m:properties.d:Longitude As longitude | rename entry.content.m:properties.d:Lots As lots | geonormalize | eval _geo_count=lots&lt;/P&gt;

&lt;P&gt;Here is an example of my data output(xml):&lt;BR /&gt;
&lt;ENTRY&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;ID&gt;&lt;A href="http://datamall.mytransport.sg/LTAoDataService.svc/CarParkSet(24)" target="_blank"&gt;http://datamall.mytransport.sg/LTAoDataService.svc/CarParkSet(24)&lt;/A&gt;&lt;/ID&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;TITLE type="text"&gt;Orchard&lt;/TITLE&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;SUMMARY type="text"&gt;Development: Orchard Central Lots: 157&lt;/SUMMARY&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;UPDATED&gt;2013-05-06T06:34:48Z&lt;/UPDATED&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;AUTHOR&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;NAME&gt;&lt;/NAME&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;/AUTHOR&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;LINK rel="edit" title="CarPark" href="https://community.splunk.com/CarParkSet(24)" /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;CATEGORY term="LTAModel.CarPark" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"&gt;&lt;/CATEGORY&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;CONTENT type="application/xml"&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;PROPERTIES&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;CARPARKID type="Edm.Int32"&gt;24&lt;A href="https://community.splunk.com/d:CarParkID" target="_blank"&gt;/d:CarParkID&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;MAP&gt;&lt;AREA /&gt;Orchard&lt;A href="https://community.splunk.com/d:Area" target="_blank"&gt;/d:Area&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DEVELOPMENT&gt;Orchard Central&lt;A href="https://community.splunk.com/d:Development" target="_blank"&gt;/d:Development&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;LOTS type="Edm.Int32"&gt;157&lt;A href="https://community.splunk.com/d:Lots" target="_blank"&gt;/d:Lots&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;SUMMARY&gt;Development: Orchard Central Lots: 157&lt;A href="https://community.splunk.com/d:Summary" target="_blank"&gt;/d:Summary&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;CREATEDATE type="Edm.DateTime"&gt;2013-05-06T06:32:07.9&lt;A href="https://community.splunk.com/d:CreateDate" target="_blank"&gt;/d:CreateDate&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;LATITUDE type="Edm.Double"&gt;1.300724&lt;A href="https://community.splunk.com/d:Latitude" target="_blank"&gt;/d:Latitude&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;LONGITUDE type="Edm.Double"&gt;103.839945&lt;A href="https://community.splunk.com/d:Longitude" target="_blank"&gt;/d:Longitude&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DISTANCE type="Edm.Double"&gt;0&lt;A href="https://community.splunk.com/d:Distance" target="_blank"&gt;/d:Distance&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="https://community.splunk.com/m:properties" target="_blank"&gt;/m:properties&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;/DISTANCE&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;/LONGITUDE&gt;&lt;/LATITUDE&gt;&lt;/CREATEDATE&gt;&lt;/SUMMARY&gt;&lt;/LOTS&gt;&lt;/DEVELOPMENT&gt;&lt;/MAP&gt;&lt;/CARPARKID&gt;&lt;/PROPERTIES&gt;&lt;/CONTENT&gt;&lt;/ENTRY&gt;&lt;/P&gt;

&lt;P&gt;Pls See the picture attached for the xml data (original)&lt;IMG src="http://" alt="alt text" /&gt;&lt;BR /&gt;
Thank you in advance!&lt;/P&gt;

&lt;P&gt;Nurul&lt;BR /&gt;
(&lt;A href="mailto:nurul27@live.com" target="_blank"&gt;nurul27@live.com&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-Map-out-data-on-Google-Maps/m-p/24708#M4583</guid>
      <dc:creator>nlfatin</dc:creator>
      <dc:date>2020-09-28T13:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do i Map out data on Google Maps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-Map-out-data-on-Google-Maps/m-p/24709#M4584</link>
      <description>&lt;P&gt;It appears as though using geonormalize command isn't working for you.  You could do an eval on _geo and pipe it to a table to see if you are actually getting anything. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval mygeo = _geo | table mygeo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or try building the _geo field yourself as you see below:&lt;/P&gt;

&lt;P&gt;Use existing geolocation information available in search results&lt;/P&gt;

&lt;P&gt;It's common case that events already contain geo information.&lt;BR /&gt;
The geonormalize command&lt;/P&gt;

&lt;P&gt;The geonormalize command can detect existing fields containing the geoinformation and normalizes them for the GoogleMaps module. For doing this the command searches for field pairs (a latitude field and a longitude field) matching a name scheme. The values of those fields are then merged and emitted as the _geo field. The following name schemes are supported:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*lat/*lng
*lat/*lon
*latitude/*longitude
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So for example when an event has the fields gps_lat=47.11 and gps_lon=0.815 the geonormalize command will detect those fields and emit the _geo field with the value 47.11,0.815.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
sourcetype=device_tracking device_id=A47C08B13 | geonormalize&lt;BR /&gt;
Manual building the _geo field&lt;/P&gt;

&lt;P&gt;If you don't want to use the geonormalize command or if the location fields do not match any naming scheme, you can manually build the _geo field.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
eventtype=phone_activation | eval _geo=phone_loc_1+","+phone_loc_2&lt;BR /&gt;
(Assuming that phone_loc_1 contains the latitude and phone_loc_2 contains the longitude)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-Map-out-data-on-Google-Maps/m-p/24709#M4584</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2020-09-28T13:50:30Z</dc:date>
    </item>
  </channel>
</rss>

