<?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: Generate a choropleth map based on the states using geo_us_states in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411721#M174402</link>
    <description>&lt;P&gt;Oh and I see you did that too.  Well, no harm done.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 02:47:25 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2018-11-27T02:47:25Z</dc:date>
    <item>
      <title>Generate a choropleth map based on the states using geo_us_states</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411719#M174400</link>
      <description>&lt;P&gt;I am trying to generate a Choropleth map to show the density of requests for each state in the US.&lt;/P&gt;

&lt;P&gt;I am using the below query :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw ".*State -(?.*) for.*" | search searchState != null |stats count by searchState |geom geo_us_states featureIdField=searchState
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;searchState count   featureCollection      geom&lt;BR /&gt;
 California   2          geo_us_states&lt;BR /&gt;&lt;BR /&gt;
 Connecticut      2          geo_us_states   &lt;/P&gt;

&lt;P&gt;The above is the output I am getting and not getting any results on the map visualization.&lt;BR /&gt;
I don't see any issue in the job log as well. Can someone help me out in this.&lt;/P&gt;

&lt;P&gt;(&lt;STRONG&gt;EDIT - I changed the code to be in "code" tags to make Answers not eat characters&lt;/STRONG&gt; - Rich)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411719#M174400</guid>
      <dc:creator>rohit_kothuru</dc:creator>
      <dc:date>2020-09-29T22:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a choropleth map based on the states using geo_us_states</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411720#M174401</link>
      <description>&lt;P&gt;Correct query:&lt;/P&gt;

&lt;P&gt;rex field=_raw ".&lt;EM&gt;State -(?.&lt;/EM&gt;) for.*" | search searchState != null |stats count by searchState |geom geo_us_states featureIdField=searchState&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411720#M174401</guid>
      <dc:creator>rohit_kothuru</dc:creator>
      <dc:date>2020-09-29T22:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a choropleth map based on the states using geo_us_states</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411721#M174402</link>
      <description>&lt;P&gt;Oh and I see you did that too.  Well, no harm done.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 02:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411721#M174402</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-11-27T02:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a choropleth map based on the states using geo_us_states</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411722#M174403</link>
      <description>&lt;P&gt;Interesting - where the field &lt;CODE&gt;geom&lt;/CODE&gt; is specified, you &lt;EM&gt;should&lt;/EM&gt; have a bunch of stuff, like ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; {"type":"multipolygon", "coordinates": [[[[lots of numbers here ... LOTS of numbers here... :) ... }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you try this run-anywhere search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval state="California" | stats count by state | geom geo_us_states featureIdField=state
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When it runs, in your statistics tab you should have output like I describe above for California. In the visualizations tab you should see a US or world map, with California in light pink.&lt;/P&gt;

&lt;P&gt;Let us know what you find!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 02:56:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411722#M174403</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-11-27T02:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a choropleth map based on the states using geo_us_states</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411723#M174404</link>
      <description>&lt;P&gt;@rich7177 &lt;/P&gt;

&lt;P&gt;I ran the run-anywhere search and I am able to see California in light pink.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 07:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411723#M174404</guid>
      <dc:creator>rohit_kothuru</dc:creator>
      <dc:date>2018-11-27T07:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a choropleth map based on the states using geo_us_states</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411724#M174405</link>
      <description>&lt;P&gt;@rich7177 &lt;/P&gt;

&lt;P&gt;It was a mistake from my side. The state was having spaces and because of this was not getting mapped.&lt;/P&gt;

&lt;P&gt;If I run the query ( with geom geo_us_states ) I am getting the world map but I want only the map of US. Is there any way to achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411724#M174405</guid>
      <dc:creator>rohit_kothuru</dc:creator>
      <dc:date>2020-09-29T22:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a choropleth map based on the states using geo_us_states</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411725#M174406</link>
      <description>&lt;P&gt;In the settings for the map, there's a way to set the default zoom level.  If you get it zoomed in how you want, then set that, it should remember your settings.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 13:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-choropleth-map-based-on-the-states-using-geo-us/m-p/411725#M174406</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-11-27T13:30:09Z</dc:date>
    </item>
  </channel>
</rss>

