<?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 change color of a Panel based on String in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653725#M225916</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; Can you tell me the correct quere based on the case mentioned in my previous reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| stats count count(eval(Severity=="CRITICAL")) as _critical
| eval _colour=if(_critical&amp;gt;0,"red","green")&amp;lt;/query&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 13:36:09 GMT</pubDate>
    <dc:creator>devsru</dc:creator>
    <dc:date>2023-08-09T13:36:09Z</dc:date>
    <item>
      <title>How to change color of a Panel based on String?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653051#M225656</link>
      <description>&lt;P&gt;Hi All,I am running a dashboard which returns the total count(stats count) of field mentioning Severity=ok or Severity=Critical.&lt;/P&gt;
&lt;P&gt;The requirement is if atealst one field value is Severity=Critical, the color of the panel should turn to Red otherwise Green when&amp;nbsp;Severity=Ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please suggest.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 21:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653051#M225656</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-03T21:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653056#M225659</link>
      <description>&lt;P&gt;You could use CSS to change the colour of the panel using a token which is set based on the results of the search.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 13:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653056#M225659</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-03T13:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653057#M225660</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;&lt;/P&gt;&lt;P&gt;How to achieve this ?&lt;/P&gt;&lt;P&gt;My query is index =* Severity=* | stats count&lt;/P&gt;&lt;P&gt;Here Severity can be either "CRITICAL" or "OK"&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to display red if the Severity is&amp;nbsp;"CRITICAL" or "OK" . (It can be 100 events OK and 50 as CRITICAL.) If all are OK then display GREEN&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 13:13:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653057#M225660</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-03T13:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653062#M225663</link>
      <description>&lt;P&gt;Start with this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index =* Severity=* | stats count(eval(Severity=="CRITICAL")) as Critical count(eval(Severity=="OK")) as OK
| eval colour=if(insnotnull(Critical) and Critical &amp;gt; 0, "red", "green")&lt;/LI-CODE&gt;&lt;P&gt;Then in your done handler, set a token to $result.colour$ and use this token in your CSS.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 13:38:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653062#M225663</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-03T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653076#M225671</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Apologies but I don't know using CSS. Will it be possible to provide me the XML.&lt;/P&gt;&lt;P&gt;For example I want to highlight the server vmp-stata-01 as Red as it has one "critical" Severity field and 8 "OK"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 573px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26623i60B286602B03D91B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 14:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653076#M225671</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-03T14:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653079#M225672</link>
      <description>&lt;P&gt;Please share your dashboard source for this panel in a codeblock&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:14:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653079#M225672</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-03T15:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653092#M225680</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard version="1.1" theme="dark"&amp;gt;
  &amp;lt;search id="base_search"&amp;gt;
    &amp;lt;query&amp;gt;| inputlookup kv_cmdb_as_entity_kpi_lookup WHERE NOT kpi="*~~*" AND host IN (X,Y)
    [
    search index="itsi_grouped_alerts" kpi=* severity=* entity_name=* earliest=-60m@m
| stats latest(_time) as time latest(severity) as severity by entity_name kpi
| eval host=lower(mvindex(split(entity_name, "."), 0))
| table host kpi severity time
]
| eval severity=coalesce(severity, 2),  n=now(), time=coalesce(time, n), time=strftime(time, "%Y-%m-%d %H:%M:%S")
| fields - n  _key _timediff
| sort - severity host kpi
| eval severity=case(severity == 2, "OK", severity == 4, "MEDIUM", severity == 6, "CRITICAL") 
| fields host kpi severity
|  rename host as Host, kpi as KPI, severity as Severity 
&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;label&amp;gt;Application Dashboard&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;PRD&amp;lt;/title&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Server Name&amp;lt;/title&amp;gt;
        &amp;lt;search base="base_search"&amp;gt;
          &amp;lt;query&amp;gt;| search Host=xyz* Severity=* 
| stats count&amp;lt;/query&amp;gt;
        &amp;lt;/search&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="drilldown"&amp;gt;all&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;["0x53a051","0x53a051"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeValues"&amp;gt;[0]&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&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="trellis.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&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;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
	 &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Aug 2023 17:09:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653092#M225680</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-03T17:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653093#M225681</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; Appreciate your help on this one.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 17:09:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653093#M225681</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-03T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653171#M225714</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard version="1.1" theme="dark"&amp;gt;
  &amp;lt;search id="base_search"&amp;gt;
    &amp;lt;query&amp;gt;| inputlookup kv_cmdb_as_entity_kpi_lookup WHERE NOT kpi="*~~*" AND host IN (X,Y)
    [
    search index="itsi_grouped_alerts" kpi=* severity=* entity_name=* earliest=-60m@m
| stats latest(_time) as time latest(severity) as severity by entity_name kpi
| eval host=lower(mvindex(split(entity_name, "."), 0))
| table host kpi severity time
]
| eval severity=coalesce(severity, 2),  n=now(), time=coalesce(time, n), time=strftime(time, "%Y-%m-%d %H:%M:%S")
| fields - n  _key _timediff
| sort - severity host kpi
| eval severity=case(severity == 2, "OK", severity == 4, "MEDIUM", severity == 6, "CRITICAL") 
| fields host kpi severity
|  rename host as Host, kpi as KPI, severity as Severity 
&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;label&amp;gt;Application Dashboard&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;PRD&amp;lt;/title&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Server Name&amp;lt;/title&amp;gt;
        &amp;lt;search base="base_search"&amp;gt;
          &amp;lt;query&amp;gt;| search Host=xyz* Severity=*
| eval range=if(Severity=="CRITICAL",6,0) 
| fields Host KPI range&amp;lt;/query&amp;gt;
        &amp;lt;/search&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="drilldown"&amp;gt;all&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;["0x53a051","0xff0000"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeValues"&amp;gt;[6]&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&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="trellis.enabled"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&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;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
	 &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Aug 2023 08:00:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653171#M225714</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-04T08:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653193#M225732</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; I&amp;nbsp; tried but this Sub query but it won't work because I have more than 100 KPI's. Here I am interested only in the count and turn Red/Green if any one of the Severity is triggered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  &amp;lt;query&amp;gt;| search Host=xyz* Severity=*
| eval range=if(Severity=="CRITICAL",6,0) 
| fields Host KPI range&amp;lt;/query&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 10:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653193#M225732</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-04T10:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653197#M225736</link>
      <description>&lt;P&gt;OK Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard version="1.1" theme="dark"&amp;gt;
  &amp;lt;search id="base_search"&amp;gt;
    &amp;lt;query&amp;gt;| inputlookup kv_cmdb_as_entity_kpi_lookup WHERE NOT kpi="*~~*" AND host IN (X,Y)
    [
    search index="itsi_grouped_alerts" kpi=* severity=* entity_name=* earliest=-60m@m
| stats latest(_time) as time latest(severity) as severity by entity_name kpi
| eval host=lower(mvindex(split(entity_name, "."), 0))
| table host kpi severity time
]
| eval severity=coalesce(severity, 2),  n=now(), time=coalesce(time, n), time=strftime(time, "%Y-%m-%d %H:%M:%S")
| fields - n  _key _timediff
| sort - severity host kpi
| eval severity=case(severity == 2, "OK", severity == 4, "MEDIUM", severity == 6, "CRITICAL") 
| fields host kpi severity
|  rename host as Host, kpi as KPI, severity as Severity 
&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;label&amp;gt;Application Dashboard&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$alwaysHide$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #single_prd text {
            fill: $single_text_colour$ !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;PRD&amp;lt;/title&amp;gt;
      &amp;lt;single id="single_prd"&amp;gt;
        &amp;lt;title&amp;gt;Server Name&amp;lt;/title&amp;gt;
        &amp;lt;search base="base_search"&amp;gt;
          &amp;lt;query&amp;gt;| search Host=xyz* Severity=* 
| stats count count(eval(Severity=="CRITICAL")) as _critical
| eval _colour=if(_critical&amp;gt;0,"red","green")&amp;lt;/query&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;set token="single_text_colour"&amp;gt;$result._colour$&amp;lt;/set&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&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="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="numberPrecision"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&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="trellis.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&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;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="useThousandSeparators"&amp;gt;1&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;</description>
      <pubDate>Fri, 04 Aug 2023 11:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653197#M225736</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-04T11:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653675#M225888</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Wonderful. The solution seems to be working. I have a small modification in requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Severity is "Critical" then it should display Red, If "OK" then green , if "Amber" then yellow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me with that.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 06:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653675#M225888</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-09T06:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653677#M225889</link>
      <description>&lt;P&gt;It depends on what your criteria for AMBER is - if I assume it is "MEDIUM" and that if the count for critical is zero but the count for MEDIUM is not zero, then this is AMBER? - you could change the query to this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;          &amp;lt;query&amp;gt;| search Host=xyz* Severity=* 
| stats count count(eval(Severity=="CRITICAL")) as _critical count(eval(Severity=="MEDIUM")) as _amber
| eval _colour=if(_critical&amp;gt;0,"red",if(_amber&amp;gt;0,"yellow","green"))&amp;lt;/query&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Aug 2023 06:41:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653677#M225889</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T06:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653695#M225895</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;&lt;/P&gt;&lt;P&gt;The requirement is if we have atleast one Severity count as "CRITICAL" change the color to Red. No matter if we have "MEDIUM" or "OK" events.&lt;/P&gt;&lt;P&gt;If "MEDIUM" and "OK" but no "CRITICAL" then AMBER&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if "OK" only then green&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 07:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653695#M225895</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-09T07:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653725#M225916</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; Can you tell me the correct quere based on the case mentioned in my previous reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| stats count count(eval(Severity=="CRITICAL")) as _critical
| eval _colour=if(_critical&amp;gt;0,"red","green")&amp;lt;/query&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653725#M225916</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-09T13:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653730#M225918</link>
      <description>&lt;P&gt;See my previous response&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653730#M225918</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T13:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653731#M225919</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;&lt;/P&gt;&lt;P&gt;I managed to do this with below query. Thanks for all your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| stats count count(eval(Severity=="CRITICAL")) as _critical count(eval(Severity=="OK")) as _ok count(eval(Severity=="MEDIUM")) as _medium&lt;BR /&gt;| eval _colour=case(_critical&amp;gt;0 AND _medium&amp;gt;0,"red","green",_critical=0 AND _medium&amp;gt;0,"yellow","green",_critical=0 AND _medium=0,"green","red")&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 14:00:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653731#M225919</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-09T14:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653736#M225922</link>
      <description>&lt;P&gt;It looks like your case function is not set up correctly, although this could just be a copy/paste error?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 14:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653736#M225922</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653737#M225923</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;&lt;/P&gt;&lt;P&gt;Indeed it was a typo &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| stats count count(eval(Severity=="CRITICAL")) as _critical count(eval(Severity=="OK")) as _ok count(eval(Severity=="MEDIUM")) as _medium&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval _colour=case(_critical&amp;gt;0 AND _medium&amp;gt;0,"red",_critical=0 AND _medium&amp;gt;0,"yellow","_critical=0 AND _medium=0,"green")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 14:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653737#M225923</guid>
      <dc:creator>devsru</dc:creator>
      <dc:date>2023-08-09T14:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to change color of a Panel based on String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653739#M225925</link>
      <description>&lt;P&gt;OK now your logic seems a little unrobust. What happens if _critical &amp;gt; 0 and _medium = 0?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 14:20:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-a-Panel-based-on-String/m-p/653739#M225925</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T14:20:43Z</dc:date>
    </item>
  </channel>
</rss>

