<?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 edit my dashboard XML to get a single value string to change color based on value ranges? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-dashboard-XML-to-get-a-single-value-string-to/m-p/239656#M14858</link>
    <description>&lt;P&gt;Arggg, so the field has to be the value and then a table command is needed. Thanks for the help, somesoni2 this got things working.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2016 18:56:36 GMT</pubDate>
    <dc:creator>splunker1981</dc:creator>
    <dc:date>2016-07-07T18:56:36Z</dc:date>
    <item>
      <title>How to edit my dashboard XML to get a single value string to change color based on value ranges?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-dashboard-XML-to-get-a-single-value-string-to/m-p/239654#M14856</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;Hoping someone can help or point me in the right direction. I am trying to color code my single value string based on value ranges they fall under. Here is my XML.  What I am trying to do is make the string RUNNING green and DOWN red.  What am I missing here?  I'm on version 6.4.  Thanks for all the help in advance.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;          &amp;lt;query&amp;gt;|stats count| fields - count | eval diff=2000|  eval status=case(diff&amp;lt;=1500, "RUNNING", diff &amp;gt;1501, "DOWN") |rangemap field=status low=0-1500 severe=1501-9999&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;option name="field"&amp;gt;status&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
        &amp;lt;option name="colorMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="numberPrecision"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x65a637","0x555555"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="showSparkline"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="showTrendIndicator"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trendColorInterpretation"&amp;gt;standard&amp;lt;/option&amp;gt;
        &amp;lt;option name="trendDisplayMode"&amp;gt;absolute&amp;lt;/option&amp;gt;
        &amp;lt;option name="unitPosition"&amp;gt;after&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="useThousandSeparators"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="linkView"&amp;gt;search&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:59:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-dashboard-XML-to-get-a-single-value-string-to/m-p/239654#M14856</guid>
      <dc:creator>splunker1981</dc:creator>
      <dc:date>2016-07-07T16:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my dashboard XML to get a single value string to change color based on value ranges?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-dashboard-XML-to-get-a-single-value-string-to/m-p/239655#M14857</link>
      <description>&lt;P&gt;Try this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats count| fields - count | eval diff=2000|  eval status=case(diff&amp;lt;=1500, "RUNNING", diff &amp;gt;1501, "DOWN") |rangemap field=diff low=0-1500 severe=1501-9999 |table status range
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2016 18:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-dashboard-XML-to-get-a-single-value-string-to/m-p/239655#M14857</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-07T18:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my dashboard XML to get a single value string to change color based on value ranges?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-dashboard-XML-to-get-a-single-value-string-to/m-p/239656#M14858</link>
      <description>&lt;P&gt;Arggg, so the field has to be the value and then a table command is needed. Thanks for the help, somesoni2 this got things working.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 18:56:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-dashboard-XML-to-get-a-single-value-string-to/m-p/239656#M14858</guid>
      <dc:creator>splunker1981</dc:creator>
      <dc:date>2016-07-07T18:56:36Z</dc:date>
    </item>
  </channel>
</rss>

