<?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: GEOSTATS - unable to set Color ranges properly in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209904#M43333</link>
    <description>&lt;P&gt;This is the reason I posted earlier&lt;/P&gt;

&lt;P&gt;Org(Dis_String)    ColorCoding&lt;BR /&gt;
A1                           1&lt;BR /&gt;
B1                            2&lt;BR /&gt;
C1                           1&lt;BR /&gt;
D1                           3&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Fri, 30 Dec 2016 04:47:53 GMT</pubDate>
    <dc:creator>avaishsplunk</dc:creator>
    <dc:date>2016-12-30T04:47:53Z</dc:date>
    <item>
      <title>GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209894#M43323</link>
      <description>&lt;P&gt;I have the below scenario:&lt;/P&gt;

&lt;P&gt;Org   OrderLine&lt;BR /&gt;
A1        1&lt;BR /&gt;
A2        2&lt;BR /&gt;
A3       4&lt;BR /&gt;
A5       1&lt;/P&gt;

&lt;P&gt;when i do geostats sum(ColorCode) by Org and try to display colors on the basis of Color codes(e.g. Green for 1), the map is not displaying the color codes it is randomly picking up the colors. The requirement is to show bubbles for each Org with color coding as per the output.&lt;/P&gt;

&lt;P&gt;I did tried bucketing the colors  and using color options e.g. eval yellowCount = if(Orderline = 2,2,0) but that didn't worked:&lt;/P&gt;

&lt;P&gt;{greenCount:0x6dc066,yellowCount:0xffd700,redCount:0xe60026,orangeCount:ff3d00,blueCount:1a237e}&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 22:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209894#M43323</guid>
      <dc:creator>avaishsplunk</dc:creator>
      <dc:date>2016-12-28T22:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209895#M43324</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2279i9B86C29C72B9ACA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;If you are able to plot the series on Geo Map with the series names: greenCount blueCount yellowCount orangeCount and redCount then you can use mapping.fieldColors for applying specific color to the series.&lt;/P&gt;

&lt;P&gt;Following is an example for redCount and greenCount using hex code for respective colors. You can use &lt;STRONG&gt;mapping.fieldColors&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="mapping.fieldColors"&amp;gt;{redCount:0xFF0000,greenCount:0x00FF00}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Refer to the following documentation (also look at seriesColors option)&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#map_.28event_tokens.29"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#map_.28event_tokens.29&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATED&lt;/STRONG&gt;: Added sample screenshot with for above &lt;STRONG&gt;mapping.fieldColors&lt;/STRONG&gt; example for redCount and greenCount fields.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 09:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209895#M43324</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-29T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209896#M43325</link>
      <description>&lt;P&gt;Can you share part of query that plots the geostats? &lt;/P&gt;

&lt;P&gt;Also hover over your GeoStats pie, and see the series names displayed in the pie.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209896#M43325</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-29T16:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209897#M43326</link>
      <description>&lt;P&gt;When you asked your question and mentioned that your GeoStats is picking Random colors, can you check the names of pie slices which are showing Random Colors? You would need to rename and set a color for those slices(field names).&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209897#M43326</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-29T16:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209898#M43327</link>
      <description>&lt;P&gt;geostats latfield=Latitude longfield=Longitude sum(Delta1) as Orderline by dis_string maxzoomlevel=9 globallimit=0|eval redCount = if(Orderline = 4,4,0) | eval yellowCount = if(Orderline = 2,2,0)| eval greenCount = if(Orderline = 1,1,0) |eval orangeCount = if(Orderline = 3,3,0)|eval blueCount = if(Orderline = 5,5,0)| fields - Orderline&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 22:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209898#M43327</guid>
      <dc:creator>avaishsplunk</dc:creator>
      <dc:date>2016-12-29T22:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209899#M43328</link>
      <description>&lt;P&gt;The above is my geostats query, the above stats shows a pie chart with values for each dis_string value with multiple colors, event though i specified the color as:&lt;/P&gt;

&lt;P&gt;{greenCount:0x6dc066,yellowCount:0xffd700,redCount:0xe60026,orangeCount:ff3d00,blueCount:1a237e}&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 22:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209899#M43328</guid>
      <dc:creator>avaishsplunk</dc:creator>
      <dc:date>2016-12-29T22:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209900#M43329</link>
      <description>&lt;P&gt;The value in dis_string is like this &lt;STRONG&gt;"ABC - Lines Imported - 10: Released:10"&lt;/STRONG&gt; , this way i want to show for all dis_string values for each city or can say latitude/longitude, Delta1 is just a number like 1, 2,3,4, 5 which I have put to create different buckets&lt;/P&gt;

&lt;P&gt;|inputlookup CDCRDCGeoCodes.csv |eval linecount=0 |eval lcount=0 |fields ORGANIZATION_CODE,linecount,Lat,Long, DESCRIPTION| append  [search index= log-ebs-nprod sourcetype=ebs-events |search "ROF_ROI_ORDER_LINE_COUNT" |spath output=OpName path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.operationName |spath output=EvType path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.eventTypeCode |spath output=Header_Count path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute1 |spath output=Line_Count path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute2 |spath output=Org_Code path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute3 |spath output=status path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute4 |spath output=TimeZone path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute5 |spath output=CDC_RDC path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute6 |eval combined=mvzip(mvzip(mvzip(mvzip(mvzip(mvzip(mvzip(OpName,EvType),Header_Count),Line_Count),Org_Code),status),TimeZone),CDC_RDC) |mvexpand combined |eval combined=split(combined,",") |eval  OpName=mvindex(combined,0) |eval  EvType=mvindex(combined,1) |eval Header_Count=mvindex(combined,2) |eval Line_Count=tonumber(mvindex(combined,3)) |eval Org_Code =mvindex(combined,4) |eval status =mvindex(combined,5) |eval TimeZone=mvindex(combined,6) |eval CDC_RDC=mvindex(combined,7) |stats sum(Line_Count) as linecount by Org_Code |rename Org_Code as ORGANIZATION_CODE  |fields linecount,ORGANIZATION_CODE,Lat,Long, DESCRIPTION] |stats sum(linecount) as "Imported", values(Lat) as "Latitude", values(Long)  as "Longitude", values(DESCRIPTION) as "OrganizationName" by ORGANIZATION_CODE | join type=outer ORGANIZATION_CODE[|inputlookup CDCRDCGeoCodes.csv| eval Line_Count=0|fields ORGANIZATION_CODE,Line_Count,DESCRIPTION | append[search index=log-ebs-nprod sourcetype=ebs-events| search "ROF_DR_PUB_LINE_COUNT"|spath output=OpName path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.operationName|spath output=EvType path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.eventTypeCode|spath output=Header_Count path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute1|spath output=Line_Count path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute2|spath output=Org_Code path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute3|spath output=status path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute4|spath output=TimeZone path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute5|spath output=CDC_RDC path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute6|spath output=Ord_Type path=payload.gpmGenerateEventLogs.gpmGenerateEventLog{}.attribute7 |eval combined=mvzip(mvzip(mvzip(mvzip(mvzip(mvzip(mvzip(mvzip(OpName,EvType),Header_Count),Line_Count),Org_Code),status),TimeZone),CDC_RDC),Ord_Type) | mvexpand combined |eval combined=split(combined,",") |eval  OpName=mvindex(combined,0) |eval  EvType=mvindex(combined,1) |eval Header_Count=mvindex(combined,2) |eval Line_Count=mvindex(combined,3) |eval Org_Code =mvindex(combined,4) |eval status =mvindex(combined,5) |eval TimeZone=mvindex(combined,6) |eval CDC_RDC=mvindex(combined,7) |eval Ord_Type=mvindex(combined,8) |where Ord_Type="COO"  | rename Org_Code as ORGANIZATION_CODE]  |stats sum(Line_Count) as "Released" by ORGANIZATION_CODE]|fields ORGANIZATION_CODE, Imported, Released, Latitude, Longitude |eval Delta = Imported - Released| eval Delta1 = case((Imported &amp;gt;0 AND Released &amp;gt; 0 AND Delta = 0), "1",(Imported &amp;gt; 0 AND Released &amp;gt; 0 AND Delta !=0), "2",(Imported = 0 AND Released =0),"3",(Imported &amp;gt; 0 AND Released = 0),"4",(Imported &amp;gt; 0 AND Released &amp;gt; 0 AND Delta &amp;lt;0),"5",1=1,"Other")| eval dis_string = ORGANIZATION_CODE.+" :Imported: "+ Imported + ": Released :"+ Released| fields ORGANIZATION_CODE, dis_string, Delta,Delta1 , Latitude, Longitude|geostats latfield=Latitude longfield=Longitude sum(Delta1) as Orderline by dis_string maxzoomlevel=9 globallimit=0|eval redCount = if(Orderline = 4,4,0) | eval yellowCount = if(Orderline = 2,2,0)| eval greenCount = if(Orderline = 1,1,0) |eval orangeCount = if(Orderline = 3,3,0)|eval blueCount = if(Orderline = 5,5,0)| fields - Orderline&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209900#M43329</guid>
      <dc:creator>avaishsplunk</dc:creator>
      <dc:date>2020-09-29T12:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209901#M43330</link>
      <description>&lt;P&gt;As per the code above, do you get series as greenCount, blueCount, yellowCount, orangeCount and redCount when you hover in your Map?&lt;/P&gt;

&lt;P&gt;If so then the code similar to the I have provided should work. If not please change the names accordingly in &lt;STRONG&gt;mapping.fieldColors&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 04:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209901#M43330</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-30T04:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209902#M43331</link>
      <description>&lt;P&gt;I have updated my answer with sample screenshot.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 04:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209902#M43331</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-30T04:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209903#M43332</link>
      <description>&lt;P&gt;Thanks a lot NiketNilay for the prompt help, but this is not going to work for me, in my scenario , i gave different colors which specifies different scenarios in the data we are plotting e.g. &lt;BR /&gt;
If Imported = 0 and Released = 0 (GreenColor), &lt;BR /&gt;
if imported = 10 , Released = 0    (RedColor)&lt;/P&gt;

&lt;P&gt;the kind of scenario will be for all cities across US, so the map should show an alarm kind of thing for a city when Imported = 100 but released = 0 (Red Color)&lt;/P&gt;

&lt;P&gt;What i did was i eval'ed these scenarios as values e.g. 1 for greencolor, 2 for redcolor and was plotting on the map by dis_string which as i mentioned above (ABC - Lines Imported - 10: Released:10) so that each city can show the imported v/s released status.&lt;/P&gt;

&lt;P&gt;Hope it is not too confusing for you, let me know in case you need more details on my scenario....&lt;/P&gt;

&lt;P&gt;Thanks a lot for your help on this&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 04:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209903#M43332</guid>
      <dc:creator>avaishsplunk</dc:creator>
      <dc:date>2016-12-30T04:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209904#M43333</link>
      <description>&lt;P&gt;This is the reason I posted earlier&lt;/P&gt;

&lt;P&gt;Org(Dis_String)    ColorCoding&lt;BR /&gt;
A1                           1&lt;BR /&gt;
B1                            2&lt;BR /&gt;
C1                           1&lt;BR /&gt;
D1                           3&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 04:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209904#M43333</guid>
      <dc:creator>avaishsplunk</dc:creator>
      <dc:date>2016-12-30T04:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS - unable to set Color ranges properly</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209905#M43334</link>
      <description>&lt;P&gt;Thanks for explaining, maybe I was overwhelmed by the length of your Splunk query and hence overlooked the details.&lt;/P&gt;

&lt;P&gt;You are not trying to color geo stats based on series depicted rather you are looking at range value which is not even plotted. I am not sure as to how that can be done. You may want to look at Choropleth map, where you can color map based on ranges (however, values from range needs to be plotted on the geostat).&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 08:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-unable-to-set-Color-ranges-properly/m-p/209905#M43334</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-30T08:36:31Z</dc:date>
    </item>
  </channel>
</rss>

