<?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 How to revise my search in order to convert my cluster map into a choropleth map? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-revise-my-search-in-order-to-convert-my-cluster-map-into/m-p/202074#M176669</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a query that supplies IP address and a status code and I have created a cluster map from the results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="*beta*" source="*access_log*" index=main |rex "(?&amp;lt;src&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"|rex "HTTP.\d.\d.\s+(?&amp;lt;status&amp;gt;\d+)"| iplocation src  |geostats count by status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd like to convert this to a choropleth map but so far no luck.  As this is my first time trying this I'm kinda stuck.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2016 20:07:52 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2016-09-20T20:07:52Z</dc:date>
    <item>
      <title>How to revise my search in order to convert my cluster map into a choropleth map?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-revise-my-search-in-order-to-convert-my-cluster-map-into/m-p/202074#M176669</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a query that supplies IP address and a status code and I have created a cluster map from the results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="*beta*" source="*access_log*" index=main |rex "(?&amp;lt;src&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"|rex "HTTP.\d.\d.\s+(?&amp;lt;status&amp;gt;\d+)"| iplocation src  |geostats count by status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd like to convert this to a choropleth map but so far no luck.  As this is my first time trying this I'm kinda stuck.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 20:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-revise-my-search-in-order-to-convert-my-cluster-map-into/m-p/202074#M176669</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-09-20T20:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to revise my search in order to convert my cluster map into a choropleth map?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-revise-my-search-in-order-to-convert-my-cluster-map-into/m-p/202075#M176670</link>
      <description>&lt;P&gt;I think, for choropleth maps, you will need geo_* kmz files. Check your lookup definition, there should be a few. Pick the one that's appropriate for your data (countries, states etc). Then your query would look something like this (you'll have to tweak it)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="*beta*" source="*access_log*" index=main |rex "(?&amp;lt;src&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | rex "HTTP.\d.\d.\s+(?&amp;lt;status&amp;gt;\d+)" | iplocation src  | lookup geo_countries latitude AS lat, longitude AS long | stats count BY featureIdField AS country | geom geo_countries featureIdField="country"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2016 20:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-revise-my-search-in-order-to-convert-my-cluster-map-into/m-p/202075#M176670</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-20T20:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to revise my search in order to convert my cluster map into a choropleth map?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-revise-my-search-in-order-to-convert-my-cluster-map-into/m-p/202076#M176671</link>
      <description>&lt;P&gt;Hi Sundareshr,&lt;/P&gt;

&lt;P&gt;I think with your help I got it to work.  Had to make a few changes on your query.  It ended up looking like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="*beta*" source="*access_log*" index=main |rex "(?&amp;lt;src&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | rex "HTTP.\d.\d.\s+(?&amp;lt;status&amp;gt;\d+)" | iplocation src  | lookup geo_countries latitude AS lat, longitude AS lon |stats count BY featureId|geom geo_countries featureId="country"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2016 20:44:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-revise-my-search-in-order-to-convert-my-cluster-map-into/m-p/202076#M176671</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-09-20T20:44:33Z</dc:date>
    </item>
  </channel>
</rss>

