<?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: Dashboard Background Color Formatting Based on Text in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/574005#M47090</link>
    <description>&lt;P&gt;Anyone else able to provide some insight on where I'm going wrong with my query? I'd love to do this in other dashboards where I can just show red or green based on text.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 12:44:35 GMT</pubDate>
    <dc:creator>jtoy1986</dc:creator>
    <dc:date>2021-11-08T12:44:35Z</dc:date>
    <item>
      <title>Dashboard Background Color Formatting Based on Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/573491#M47059</link>
      <description>&lt;P&gt;I would like the background to be either Red or Green based on the text of "deviceSeverity." The value of deviceSeverity can either be "Up" or "Down." No matter what I do, the background is staying grey. I am new to Splunk formatting and tried searching through these various messages here, but have not had any luck.&lt;/P&gt;&lt;P&gt;This is the latest that I have and am probably over-complicating things (just want background to be red if deviceSeverity is "Down" and background to be green if deviceSeverity is "Up"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;query&amp;gt;index=arcmisc dvc = $psmserver$ AND deviceProduct = "ApplicationMonitor" name="VIP Health Check Status" deviceSeverity=* 
|  stats latest(deviceSeverity) | eval range=case(deviceSeverity == "Up", "low", deviceSeverity == "Down", "severe")&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;refresh&amp;gt;30s&amp;lt;/refresh&amp;gt;
          &amp;lt;refreshType&amp;gt;delay&amp;lt;/refreshType&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="colorMode"&amp;gt;block&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="classField"&amp;gt;deviceSeverity&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.fieldColors"&amp;gt;
        {"severe": 0xFF0000, "low": 0x00FF00, "NULL":0xC4C4C0}
        &amp;lt;/option&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 15:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/573491#M47059</guid>
      <dc:creator>jtoy1986</dc:creator>
      <dc:date>2021-11-03T15:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Background Color Formatting Based on Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/573710#M47069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;jtoy1986,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If visualization is a&amp;nbsp;&lt;/SPAN&gt;Statistics Table then you can define rules for coloring as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16741i85DA9C1749C9CEFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;XML:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| makeresults &lt;BR /&gt;| eval deviceSeverity = "Up" &lt;BR /&gt;| append &lt;BR /&gt;[| makeresults &lt;BR /&gt;| eval deviceSeverity = "Down" ] &lt;BR /&gt;| stats latest(deviceSeverity) &lt;BR /&gt;| eval range=case(deviceSeverity == "Up", "low", deviceSeverity == "Down", "severe")&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;format type="color" field="latest(deviceSeverity)"&amp;gt;&lt;BR /&gt;&amp;lt;colorPalette type="map"&amp;gt;{"Down":#DC4E41,"Up":#53A051}&amp;lt;/colorPalette&amp;gt;&lt;BR /&gt;&amp;lt;/format&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;/PRE&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept Solution if it helps!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 22:34:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/573710#M47069</guid>
      <dc:creator>PradReddy</dc:creator>
      <dc:date>2021-11-04T22:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Background Color Formatting Based on Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/573725#M47070</link>
      <description>&lt;P&gt;I'm getting some validation errors. What am I doing wrong? Some say unknown option name for node "single." And node "Format" is not allowed here. Also getting the following after saving, so assuming query is wrong: "&lt;SPAN&gt;Error in 'makeresults' command: This command must be the first command of a search."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;VIP Health Check Status&amp;lt;/title&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Host: Components&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=arcmisc dvc = $psmserver$ AND deviceProduct = "ApplicationMonitor" name="VIP Health Check Status" deviceSeverity=* 
|  stats latest(deviceSeverity) | makeresults 
| eval deviceSeverity = "Up" 
| append 
[| makeresults 
| eval deviceSeverity = "Down" ] 
| stats latest(deviceSeverity) 
| eval range=case(deviceSeverity == "Up", "low", deviceSeverity == "Down", "severe") &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;refresh&amp;gt;30s&amp;lt;/refresh&amp;gt;
          &amp;lt;refreshType&amp;gt;delay&amp;lt;/refreshType&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;format type="color" field="latest(deviceSeverity)"&amp;gt;
        &amp;lt;colorPalette type="map"&amp;gt;{"Down":#DC4E41,"Up":#53A051}&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 01:23:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/573725#M47070</guid>
      <dc:creator>jtoy1986</dc:creator>
      <dc:date>2021-11-05T01:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Background Color Formatting Based on Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/573727#M47071</link>
      <description>&lt;P&gt;I'm also hoping to do the same on some other ones. Basically want to show green or red based on the text that comes back in the query. For example, I am monitoring services and the panel will show "Running" or "Stopped."&lt;/P&gt;&lt;P&gt;deviceSeverity will show either "Running" or "Stopped" below in this case. In my original example, it is "Up" or "Down."&lt;/P&gt;&lt;P&gt;&amp;lt;query&amp;gt;index=arcmisc dvc = $psmserver$ AND deviceProduct = "ApplicationMonitor" name="Cyber-Ark Privileged Session Manager" deviceSeverity=*&lt;BR /&gt;| stats latest(deviceSeverity)&amp;lt;/query&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 01:56:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/573727#M47071</guid>
      <dc:creator>jtoy1986</dc:creator>
      <dc:date>2021-11-05T01:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Background Color Formatting Based on Text</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/574005#M47090</link>
      <description>&lt;P&gt;Anyone else able to provide some insight on where I'm going wrong with my query? I'd love to do this in other dashboards where I can just show red or green based on text.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 12:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Background-Color-Formatting-Based-on-Text/m-p/574005#M47090</guid>
      <dc:creator>jtoy1986</dc:creator>
      <dc:date>2021-11-08T12:44:35Z</dc:date>
    </item>
  </channel>
</rss>

