<?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 Extracting geo data from zip codes with a static csv and lookups in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-geo-data-from-zip-codes-with-a-static-csv-and-lookups/m-p/26789#M177693</link>
    <description>&lt;P&gt;I have some data in splunk with zip code.  I would like to be able to map this using the google maps app.  I have added a csv file with the following format:&lt;BR /&gt;
zipcode,state,city,longitude,latitude&lt;BR /&gt;
80809,CO,NORTH POLE,-104.993684,38.921314&lt;/P&gt;

&lt;P&gt;I have edited  edited props.conf, transforms.conf etc:&lt;/P&gt;

&lt;P&gt;When I perform a search on the maps app using geonormalize the georesults view shows values for geo_position have been resolved.  The values in geo_position are no longer negative for longitude, and latitude and longitude are reversed. The map does not show the results.  example command follows:&lt;BR /&gt;
sourcetype="syslog" host=192.168.1.1 | rex field=_raw "\"(?&lt;ZIPCODE&gt;\d{5})\"" |  regex zipcode="^8" | lookup zipcode zipcode OUTPUT latitude,longitude,city,state | geonormalize &lt;/ZIPCODE&gt;&lt;/P&gt;

&lt;P&gt;any help would be most appreciated.&lt;BR /&gt;
grazie mille&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:10:46 GMT</pubDate>
    <dc:creator>jbertoli</dc:creator>
    <dc:date>2020-09-28T10:10:46Z</dc:date>
    <item>
      <title>Extracting geo data from zip codes with a static csv and lookups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-geo-data-from-zip-codes-with-a-static-csv-and-lookups/m-p/26789#M177693</link>
      <description>&lt;P&gt;I have some data in splunk with zip code.  I would like to be able to map this using the google maps app.  I have added a csv file with the following format:&lt;BR /&gt;
zipcode,state,city,longitude,latitude&lt;BR /&gt;
80809,CO,NORTH POLE,-104.993684,38.921314&lt;/P&gt;

&lt;P&gt;I have edited  edited props.conf, transforms.conf etc:&lt;/P&gt;

&lt;P&gt;When I perform a search on the maps app using geonormalize the georesults view shows values for geo_position have been resolved.  The values in geo_position are no longer negative for longitude, and latitude and longitude are reversed. The map does not show the results.  example command follows:&lt;BR /&gt;
sourcetype="syslog" host=192.168.1.1 | rex field=_raw "\"(?&lt;ZIPCODE&gt;\d{5})\"" |  regex zipcode="^8" | lookup zipcode zipcode OUTPUT latitude,longitude,city,state | geonormalize &lt;/ZIPCODE&gt;&lt;/P&gt;

&lt;P&gt;any help would be most appreciated.&lt;BR /&gt;
grazie mille&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-geo-data-from-zip-codes-with-a-static-csv-and-lookups/m-p/26789#M177693</guid>
      <dc:creator>jbertoli</dc:creator>
      <dc:date>2020-09-28T10:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting geo data from zip codes with a static csv and lookups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-geo-data-from-zip-codes-with-a-static-csv-and-lookups/m-p/26790#M177694</link>
      <description>&lt;P&gt;I have a similar need to plot based on a zipcode that is already in splunk.  I'm not much of a Splunk Guru but I was able to make it work using an automatic lookup.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Query:&lt;/STRONG&gt;  A4 OR A5 OR A6 OR A8 | geonormalize&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Lookup input fields
ZipCode = ZipCode

Lookup output fields
lat = lat
lng = lng

Lookup table
ZipCode,lat,lng
80809,38.921314,-104.993684
60047,42.1969444,-88.0933333
T2E 0B2,51.1,-114.1

    My Data
    Model=A6 Price=27000 ZipCode=80809
    Model=A6 Price=27000 ZipCode=60047
    Model=A8 Price=19000 ZipCode=80809
    Model=A8 Price=19000 ZipCode=60047
    Model=A8 Price=35000 ZipCode=80809
    Model=A8 Price=35000 ZipCode=60047
    Model=A5 Price=35000 ZipCode=60047
    Model=A4 Price=28808 ZipCode=’T2E 0B2’
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Mar 2012 21:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-geo-data-from-zip-codes-with-a-static-csv-and-lookups/m-p/26790#M177694</guid>
      <dc:creator>mcdowes</dc:creator>
      <dc:date>2012-03-03T21:55:08Z</dc:date>
    </item>
  </channel>
</rss>

