<?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 to do conditional formatting with geostats to color code points on a Splunk map with different ranges of count values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-conditional-formatting-with-geostats-to-color-code/m-p/283738#M85760</link>
    <description>&lt;P&gt;I have the same problem&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 14:15:15 GMT</pubDate>
    <dc:creator>cmoinet</dc:creator>
    <dc:date>2019-05-20T14:15:15Z</dc:date>
    <item>
      <title>How to do conditional formatting with geostats to color code points on a Splunk map with different ranges of count values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-conditional-formatting-with-geostats-to-color-code/m-p/283735#M85757</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I'm trying to display coordinates on a Splunk Map and color code the points with different ranges of count values.&lt;/P&gt;

&lt;P&gt;I managed to create the map with the default pie chart with the search string below, but it's using the default colors. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[base search] | lookup cpk_coord_lookup NUM_CPK as NUM_CPK OUTPUT NUM_LNGTD, NUM_LATD | geostats latfield=NUM_LATD longfield=NUM_LNGTD maxzoomlevel=18 globallimit=0 count by NUM_CPK
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also referred to a similar question:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/221348/geostats-display-bubbles-on-map-instead-of-pie-cha.html"&gt;https://answers.splunk.com/answers/221348/geostats-display-bubbles-on-map-instead-of-pie-cha.html&lt;/A&gt; &lt;BR /&gt;
and came out with a second code which is color coded, but each bubble is identified by the color category (eg greenCount) instead of the &lt;CODE&gt;NUM_CPK&lt;/CODE&gt; (ID). &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[base search] | lookup cpk_coord_lookup NUM_CPK as NUM_CPK OUTPUT NUM_LNGTD, NUM_LATD | geostats latfield=NUM_LATD longfield=NUM_LNGTD maxzoomlevel=18 globallimit=0 count(NUM_CPK) as TOTAL | eval redCount = if(TOTAL &amp;gt;= 50000,TOTAL,0) | eval yellowCount = if((TOTAL &amp;gt;= 10000 AND TOTAL &amp;lt; 50000),TOTAL,0) | eval greenCount = if(TOTAL &amp;lt; 10000,TOTAL,0) | fields - TOTAL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I understand that the 2nd search string is not displaying the &lt;CODE&gt;NUM_CPK&lt;/CODE&gt; column because I didn't use the BY clause. However, if I use the BY clause (first search string), I won't be able to do conditional formatting on the points anymore.&lt;/P&gt;

&lt;P&gt;Any idea how I can use the first search string and yet do conditional formatting? Any help will be greatly appreciated. &lt;/P&gt;

&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 08:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-conditional-formatting-with-geostats-to-color-code/m-p/283735#M85757</guid>
      <dc:creator>qiaojing</dc:creator>
      <dc:date>2016-06-08T08:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to do conditional formatting with geostats to color code points on a Splunk map with different ranges of count values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-conditional-formatting-with-geostats-to-color-code/m-p/283736#M85758</link>
      <description>&lt;P&gt;Have a look at this post:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/221348/geostats-display-bubbles-on-map-instead-of-pie-cha.html"&gt;https://answers.splunk.com/answers/221348/geostats-display-bubbles-on-map-instead-of-pie-cha.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you're using Splunk 6.4 you can take advantage of other mapping visualization apps like:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/3124/"&gt;Clustered Single Value Map Visualization&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/3122/"&gt;Custom Cluster Map Visualization&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 20:28:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-conditional-formatting-with-geostats-to-color-code/m-p/283736#M85758</guid>
      <dc:creator>shaskell_splunk</dc:creator>
      <dc:date>2016-06-08T20:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to do conditional formatting with geostats to color code points on a Splunk map with different ranges of count values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-conditional-formatting-with-geostats-to-color-code/m-p/283737#M85759</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/128656"&gt;@shaskell_splunk&lt;/a&gt; Hi, I have already referred to that post as mentioned above. The solution in that post is unable to display the CPK_NUM for me, it only displays the category of count as it doesnt have a by-clause after count.&lt;/P&gt;

&lt;P&gt;I need to use the &lt;CODE&gt;count by CPK_NUM&lt;/CODE&gt; and at the same time do conditional formatting. &lt;/P&gt;

&lt;P&gt;Unfortunately, I'm using v 6.2.1&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-conditional-formatting-with-geostats-to-color-code/m-p/283737#M85759</guid>
      <dc:creator>qiaojing</dc:creator>
      <dc:date>2020-09-29T09:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to do conditional formatting with geostats to color code points on a Splunk map with different ranges of count values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-conditional-formatting-with-geostats-to-color-code/m-p/283738#M85760</link>
      <description>&lt;P&gt;I have the same problem&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 14:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-conditional-formatting-with-geostats-to-color-code/m-p/283738#M85760</guid>
      <dc:creator>cmoinet</dc:creator>
      <dc:date>2019-05-20T14:15:15Z</dc:date>
    </item>
  </channel>
</rss>

