<?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: Mapping by Zip code in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491218#M194210</link>
    <description>&lt;P&gt;this is 2 searches    The first one gives way extra results when mapping,  the 2nd one gives the correct rollup.&lt;BR /&gt;&lt;BR /&gt;
I can't give the raw data due to privacy  but in the data there is a field called zip_code,  I use a lookup to get the lat and long associated with that zip and then want to map the events by zip.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2020 20:56:36 GMT</pubDate>
    <dc:creator>ryankrieger</dc:creator>
    <dc:date>2020-01-24T20:56:36Z</dc:date>
    <item>
      <title>Mapping by Zip code</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491213#M194205</link>
      <description>&lt;P&gt;When I am trying to map by Zipcode  I get the stats table to genereate but when switching to geostats it takes 4 results from the stats table and makes it 39.  Seems to be grouping by geobin instead of zip&lt;/P&gt;

&lt;P&gt;Any ideas why this is happening?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="indexA" servco_name="store*" servtype_id="CFAIL"
| rename zip_code as Zipcode
| lookup zip_code  Zipcode OUTPUT Lat Long
| geostats latfield=Lat longfield=Long  Sum(Count)

index="IndexA" servco_name="Store*" servtype_id="CFAIL"
| rename zip_code as Zipcode
| lookup zip_code  Zipcode OUTPUT Lat Long
| Stats Sum(Count) by Zipcode
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2020 16:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491213#M194205</guid>
      <dc:creator>ryankrieger</dc:creator>
      <dc:date>2020-01-24T16:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping by Zip code</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491214#M194206</link>
      <description>&lt;P&gt;Is this two searches or one?  I also see that you're doing a sum of a count? Could you give some sample data and your desired output?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 20:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491214#M194206</guid>
      <dc:creator>cdhippen</dc:creator>
      <dc:date>2020-01-24T20:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping by Zip code</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491215#M194207</link>
      <description>&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="indexA" servco_name="store*" servtype_id="CFAIL"
 | rename zip_code as Zipcode
 | stats Sum(Count)  as Count by Zipcode
 | lookup zip_code  Zipcode OUTPUT Lat Long
 | geostats latfield=Lat longfield=Long  values(Count) as Count  values(Zipcode) as Zipcode
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;how about this?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 20:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491215#M194207</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-24T20:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping by Zip code</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491216#M194208</link>
      <description>&lt;P&gt;I think you might just be missing a "BY" clause...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="indexA" servco_name="store*" servtype_id="CFAIL"
 | rename zip_code as Zipcode
 | lookup zip_code  Zipcode OUTPUT Lat Long
 | geostats latfield=Lat longfield=Long  Sum(Count) BY Zipcode
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2020 20:38:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491216#M194208</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2020-01-24T20:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping by Zip code</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491217#M194209</link>
      <description>&lt;P&gt;When I add that by Zipcode clause I still get more stats than events.&lt;BR /&gt;&lt;BR /&gt;
796 events, 344 stats when count by Zipcode but it create 1,427 map points using geostats &lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 20:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491217#M194209</guid>
      <dc:creator>ryankrieger</dc:creator>
      <dc:date>2020-01-24T20:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping by Zip code</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491218#M194210</link>
      <description>&lt;P&gt;this is 2 searches    The first one gives way extra results when mapping,  the 2nd one gives the correct rollup.&lt;BR /&gt;&lt;BR /&gt;
I can't give the raw data due to privacy  but in the data there is a field called zip_code,  I use a lookup to get the lat and long associated with that zip and then want to map the events by zip.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 20:56:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491218#M194210</guid>
      <dc:creator>ryankrieger</dc:creator>
      <dc:date>2020-01-24T20:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping by Zip code</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491219#M194211</link>
      <description>&lt;P&gt;is that wrong?&lt;BR /&gt;
Do you want to count by each &lt;CODE&gt;Zipcode&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 21:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491219#M194211</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-24T21:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping by Zip code</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491220#M194212</link>
      <description>&lt;P&gt;I would like to see number of events per Zipcode &lt;BR /&gt;
This is how it show up with the geostats     most of the geobins contains multiple zips.   &lt;/P&gt;

&lt;P&gt;geobin                                                          latitude                       longitude                       Zipcode&lt;BR /&gt;
bin_id_zl_0_y_4_x_1                                     20.50500                    -156.95500                      96701&lt;BR /&gt;
                                                                                                                                                      96740&lt;/P&gt;

&lt;P&gt;bin_id_zl_0_y_5_x_1                                    35.54629                     -108.64629                       38637&lt;BR /&gt;
                                                                                                                                                       50322&lt;BR /&gt;&lt;BR /&gt;
                                                                                                                                                       50613&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491220#M194212</guid>
      <dc:creator>ryankrieger</dc:creator>
      <dc:date>2020-09-30T03:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping by Zip code</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491221#M194213</link>
      <description>&lt;P&gt;Do you check Zipcode lat and lon are right?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 21:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-by-Zip-code/m-p/491221#M194213</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-24T21:45:26Z</dc:date>
    </item>
  </channel>
</rss>

