<?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: Unable to color text in single value field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577435#M47330</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_2021-12-06_104954.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17126iAF0EE1EC47F32406/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_2021-12-06_104954.png" alt="image_2021-12-06_104954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the result&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 09:50:21 GMT</pubDate>
    <dc:creator>Bleepie</dc:creator>
    <dc:date>2021-12-06T09:50:21Z</dc:date>
    <item>
      <title>Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/576909#M47271</link>
      <description>&lt;P&gt;Dear Splunk Community,&lt;/P&gt;&lt;P&gt;I have the following code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;host="DESKTOP-L4ID3T2" 
source="BatchProcessor*" 
inventoryimport* 
"ExitCode: 0" 
| stats count
| eval msg=case(count == 0, "Scan niet succesvol!", count &amp;amp;gt; 0, "Scan succesvol!")
| eval range=case(count == 0, "severe", count &amp;amp;gt; 0, "low")
| table msg&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="field"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If count returns 0 events, I expect the color of the single value field to be red (severe), otherwise it should be green (low). But using the above code, there is no color at all (besides the default color black and white).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is the above not working?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 14:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/576909#M47271</guid>
      <dc:creator>Bleepie</dc:creator>
      <dc:date>2021-12-01T14:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/576913#M47272</link>
      <description>&lt;P&gt;Try adding these options&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
&amp;lt;option name="rangeColors"&amp;gt;["0x53a051","0xdc4e41"]&amp;lt;/option&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Dec 2021 15:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/576913#M47272</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-01T15:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577001#M47273</link>
      <description>&lt;P&gt;Unfortunately it doesn't apply:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17086i5C1A9009BF666234/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk.PNG" alt="splunk.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;host="DESKTOP-L4ID3T2" 
source="BatchProcessor*" 
inventoryimport* 
"ExitCode: 0" 
| stats count
| eval msg=case(count == 0, "Scan niet succesvol!", count &amp;amp;gt; 0, "Scan succesvol!")
| eval range=case(count == 0, "severe", count &amp;amp;gt; 0, "low")
| table msg&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="field"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x53a051","0xdc4e41"]&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;host="DESKTOP-L4ID3T2" 
source="BatchProcessor*" 
inventoryimport* 
"ExitCode: 0" 
| stats count
| eval msg=case(count == 0, "Scan niet succesvol!", count &amp;amp;gt; 0, "Scan succesvol!")
| eval range=case(count == 0, "severe", count &amp;amp;gt; 0, "low")
| table msg&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="field"&amp;gt;range&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;value&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x53a051","0xdc4e41"]&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 08:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577001#M47273</guid>
      <dc:creator>Bleepie</dc:creator>
      <dc:date>2021-12-02T08:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577421#M47325</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Hello Sensei, could you take another look at this &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 08:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577421#M47325</guid>
      <dc:creator>Bleepie</dc:creator>
      <dc:date>2021-12-06T08:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577425#M47327</link>
      <description>&lt;P&gt;You need to include range as an output field (single will only display values from the first field but can use other fields for the colouring)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table msg range&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Dec 2021 09:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577425#M47327</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-06T09:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577429#M47328</link>
      <description>&lt;P&gt;I have applied range ( | table msg range) and even though the coloring works, the text is either severe (red) or low (green) where I would expect Scan not succesful (red) / Scan succesful (green). Any thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 09:39:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577429#M47328</guid>
      <dc:creator>Bleepie</dc:creator>
      <dc:date>2021-12-06T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577432#M47329</link>
      <description>&lt;P&gt;Single is using the first two fields so put count as the first&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table count msg range&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Dec 2021 09:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577432#M47329</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-06T09:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577435#M47330</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_2021-12-06_104954.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17126iAF0EE1EC47F32406/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_2021-12-06_104954.png" alt="image_2021-12-06_104954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the result&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 09:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577435#M47330</guid>
      <dc:creator>Bleepie</dc:creator>
      <dc:date>2021-12-06T09:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577436#M47331</link>
      <description>&lt;P&gt;Go back to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table msg range&lt;/LI-CODE&gt;&lt;P&gt;and remove this line&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        &amp;lt;option name="field"&amp;gt;range&amp;lt;/option&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 10:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577436#M47331</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-06T10:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to color text in single value field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577438#M47332</link>
      <description>&lt;P&gt;Works! Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 10:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unable-to-color-text-in-single-value-field/m-p/577438#M47332</guid>
      <dc:creator>Bleepie</dc:creator>
      <dc:date>2021-12-06T10:12:21Z</dc:date>
    </item>
  </channel>
</rss>

