<?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 single value not changing colour in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/single-value-not-changing-colour/m-p/138122#M8306</link>
    <description>&lt;P&gt;following not displaying colour within the form.&lt;/P&gt;

&lt;P&gt;If search finds events between 3012 - 3054, display Warning in Yellow (i.e elevated).&lt;/P&gt;

&lt;P&gt;If I search and view as elevated, its displays the count of events in Yellow. But this is not working in form.&lt;/P&gt;

&lt;P&gt;HV-test&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;single&amp;gt;
  &amp;lt;title&amp;gt;HV Err&amp;lt;/title&amp;gt;
  &amp;lt;searchString&amp;gt;index =xxx  Type!=Information  (EventCode&amp;amp;gt;="3012" AND EventCode&amp;amp;lt;="3054") | stats count | appendpipe [ stats count | eval Status="No Errors" | where count==0 ] | eval Status=if(count==0,"No Errors","Warning") | eval range = if(Status=="No Errors","low","elevated")&amp;lt;/searchString&amp;gt;
  &amp;lt;earliestTime&amp;gt;-7d@h&amp;lt;/earliestTime&amp;gt;
  &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
  &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&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;/single&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 Sep 2014 06:54:54 GMT</pubDate>
    <dc:creator>kris99</dc:creator>
    <dc:date>2014-09-24T06:54:54Z</dc:date>
    <item>
      <title>single value not changing colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/single-value-not-changing-colour/m-p/138122#M8306</link>
      <description>&lt;P&gt;following not displaying colour within the form.&lt;/P&gt;

&lt;P&gt;If search finds events between 3012 - 3054, display Warning in Yellow (i.e elevated).&lt;/P&gt;

&lt;P&gt;If I search and view as elevated, its displays the count of events in Yellow. But this is not working in form.&lt;/P&gt;

&lt;P&gt;HV-test&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;single&amp;gt;
  &amp;lt;title&amp;gt;HV Err&amp;lt;/title&amp;gt;
  &amp;lt;searchString&amp;gt;index =xxx  Type!=Information  (EventCode&amp;amp;gt;="3012" AND EventCode&amp;amp;lt;="3054") | stats count | appendpipe [ stats count | eval Status="No Errors" | where count==0 ] | eval Status=if(count==0,"No Errors","Warning") | eval range = if(Status=="No Errors","low","elevated")&amp;lt;/searchString&amp;gt;
  &amp;lt;earliestTime&amp;gt;-7d@h&amp;lt;/earliestTime&amp;gt;
  &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
  &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&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;/single&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Sep 2014 06:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/single-value-not-changing-colour/m-p/138122#M8306</guid>
      <dc:creator>kris99</dc:creator>
      <dc:date>2014-09-24T06:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: single value not changing colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/single-value-not-changing-colour/m-p/138123#M8307</link>
      <description>&lt;P&gt;Taking that panel XML works for me, the text is displayed as green if the count is zero and yellow otherwise.&lt;/P&gt;

&lt;P&gt;Are there any CSS messages logged in your browser's console?&lt;BR /&gt;
Does the app of that dashboard contain any CSS customization?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/single-value-not-changing-colour/m-p/138123#M8307</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-09-24T09:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: single value not changing colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/single-value-not-changing-colour/m-p/138124#M8308</link>
      <description>&lt;P&gt;It should work. I made a code similar to yours, with forms inputs, and that works very well. Take a look at it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;single_value_changing_color&amp;lt;/label&amp;gt;
  &amp;lt;description/&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="time" token="time" searchWhenChanged="true"&amp;gt;
      &amp;lt;label/&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliestTime&amp;gt;0&amp;lt;/earliestTime&amp;gt;
        &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="action" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Choose one action&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;populatingSearch fieldForLabel="action" fieldForValue="action"&amp;gt;index=_audit|stats count by action|sort action&amp;lt;/populatingSearch&amp;gt;
      &amp;lt;default&amp;gt;change_own_password&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;HV Err&amp;lt;/title&amp;gt;
        &amp;lt;searchString&amp;gt;index=_audit action=$action$ | stats count by   user | appendpipe [stats sum(count) as count  | eval Status = "LESS THANT 20"|where count&amp;amp;lt;20]|sort action| eval Status=if(count&amp;amp;lt;20,"LESS THANT 20","MORE THAN 20") | eval range = if(Status=="LESS THANT 20","low","elevated")&amp;lt;/searchString&amp;gt;
        &amp;lt;earliestTime&amp;gt;$time.earliest$&amp;lt;/earliestTime&amp;gt;
        &amp;lt;latestTime&amp;gt;$time.latest$&amp;lt;/latestTime&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&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="linkView"&amp;gt;search&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Dec 2014 15:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/single-value-not-changing-colour/m-p/138124#M8308</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2014-12-19T15:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: single value not changing colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/single-value-not-changing-colour/m-p/138125#M8309</link>
      <description>&lt;P&gt;Get the Status Indicator app - it will allow you to do single value text with colors and icons.  There are examples in the Dashboard Examples app by Splunk.&lt;BR /&gt;
,A better way to go is to get the 'Status Indicator' app.  Think of it as a super-powered single value visualization.  I did the same thing with it and it includes the capacity to add an icon based on output.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 21:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/single-value-not-changing-colour/m-p/138125#M8309</guid>
      <dc:creator>paulmarticsi</dc:creator>
      <dc:date>2017-10-21T21:16:42Z</dc:date>
    </item>
  </channel>
</rss>

