<?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 Using GeoStats to point locations based on eval values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-GeoStats-to-point-locations-based-on-eval-values/m-p/176227#M50608</link>
    <description>&lt;P&gt;My UseCase&lt;/P&gt;

&lt;P&gt;I am using splunk to monitor a file which has latitude, longitude and CPUUsage values . I want splunk to highlight the point where CPUUsage is &amp;gt;75 . I tried using  &lt;/P&gt;

&lt;P&gt;index=* | geostats latfield=Latitude longfield=Longitude count | eval redCount = if(CPUUsage &amp;gt;75,CPUUsage,0) | eval yellowCount = if(CPUUsage &amp;lt;75,CPUUsage,0) |fields - CPUUsage&lt;BR /&gt;
Then using fieldcolours&lt;/P&gt;

&lt;P&gt;but in vain. Please Help. &lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2015 06:41:08 GMT</pubDate>
    <dc:creator>richaGindodia</dc:creator>
    <dc:date>2015-03-13T06:41:08Z</dc:date>
    <item>
      <title>Using GeoStats to point locations based on eval values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-GeoStats-to-point-locations-based-on-eval-values/m-p/176227#M50608</link>
      <description>&lt;P&gt;My UseCase&lt;/P&gt;

&lt;P&gt;I am using splunk to monitor a file which has latitude, longitude and CPUUsage values . I want splunk to highlight the point where CPUUsage is &amp;gt;75 . I tried using  &lt;/P&gt;

&lt;P&gt;index=* | geostats latfield=Latitude longfield=Longitude count | eval redCount = if(CPUUsage &amp;gt;75,CPUUsage,0) | eval yellowCount = if(CPUUsage &amp;lt;75,CPUUsage,0) |fields - CPUUsage&lt;BR /&gt;
Then using fieldcolours&lt;/P&gt;

&lt;P&gt;but in vain. Please Help. &lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 06:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-GeoStats-to-point-locations-based-on-eval-values/m-p/176227#M50608</guid>
      <dc:creator>richaGindodia</dc:creator>
      <dc:date>2015-03-13T06:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using GeoStats to point locations based on eval values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-GeoStats-to-point-locations-based-on-eval-values/m-p/176228#M50609</link>
      <description>&lt;P&gt;I was able to find an answer to this. Achieved it using rangemap&lt;/P&gt;

&lt;P&gt;| rangemap field=CPU Good=0-30 Fair=30-40 Bad=40-100 | geostats latfield=Latitude longfield=Longitude count by range&lt;BR /&gt;
{Good:0x008000,Fair:0xFFFF00,Bad:0xFF0000}&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 10:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-GeoStats-to-point-locations-based-on-eval-values/m-p/176228#M50609</guid>
      <dc:creator>richaGindodia</dc:creator>
      <dc:date>2015-03-23T10:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using GeoStats to point locations based on eval values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-GeoStats-to-point-locations-based-on-eval-values/m-p/176229#M50610</link>
      <description>&lt;P&gt;Hi richaGindodia&lt;/P&gt;

&lt;P&gt;1- Use the following search code for splunk 6.2.x&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* |where CPUUsage &amp;gt;75 |geostats latfield=Latitude longfield=Longitude count by CPUUsage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In visualisation tab go to chart type and select map. &lt;/P&gt;

&lt;P&gt;2- Use the following simple xml code for splunk 6.1.x&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;enter your dashboard name&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;map&amp;gt;
        &amp;lt;searchString&amp;gt;
         index=* |where CPUUsage &amp;gt;75 |geostats  globallimit=0 latfield=Latitude longfield=Longitude count by CPUUsage
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/searchString&amp;gt;
        &amp;lt;option name="mapping.data.maxClusters"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.center"&amp;gt;(0,0)&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.zoom"&amp;gt;2&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.markerLayer.markerMaxSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.markerLayer.markerMinSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.markerLayer.markerOpacity"&amp;gt;0.8&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.tileLayer.maxZoom"&amp;gt;7&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.tileLayer.minZoom"&amp;gt;0&amp;lt;/option&amp;gt;
      &amp;lt;/map&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Mar 2015 13:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-GeoStats-to-point-locations-based-on-eval-values/m-p/176229#M50610</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-03-23T13:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using GeoStats to point locations based on eval values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-GeoStats-to-point-locations-based-on-eval-values/m-p/176230#M50611</link>
      <description>&lt;P&gt;Hello Chimell,&lt;/P&gt;

&lt;P&gt;Thank you for a response. But this doesnot serve my purpose. Though it highlights the lat-long combinations where CPU&amp;gt;75 but in process it removes all those wherein CPU&amp;lt;75. I wanted CPU&amp;gt;75 in RED, CPU&amp;lt;75 in GREEN and CPU=0 in GREY.&lt;/P&gt;

&lt;P&gt;I think the question I posted was a bit confusing &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; . Hope this clears the use-case.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2015 06:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-GeoStats-to-point-locations-based-on-eval-values/m-p/176230#M50611</guid>
      <dc:creator>richaGindodia</dc:creator>
      <dc:date>2015-03-27T06:23:50Z</dc:date>
    </item>
  </channel>
</rss>

