<?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 Help with CSS partially not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586690#M204356</link>
    <description>&lt;P&gt;I am trying to hide RED, GREEN and YELLOW, but the xml css is not working for me.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;style&amp;gt;
#tbl_Summary tbody td div.multivalue-subcell[data-mv-index="1"]
{display: none;}
&amp;lt;/style&amp;gt;
&amp;lt;/html&amp;gt;

&amp;lt;table id="tbl_Summary"&amp;gt;
&amp;lt;title&amp;gt;Summary&amp;lt;/title&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;
index=*xyz
| eval calsuc=case(match('code',"1"), "SUCCESS", match('code',"2"), "WARNING", match('code',"1"), "FAILURE")
| dedup requestId
| eval APPLICATION=case(like('apn',"/PROFILE"),"PROFILE")
| stats Count as "Total Count" count(eval(calsuc="SUCCESS")) as "TotalSuccess" count(eval(calsuc="WARNING")) as "TotalWarning" count(eval(calsuc="FAILURE")) as "TotalFailure"
| rename TotalSuccess as S, TotalWarning as W, TotalFailure as F
| eval SuccessPerc=round(((S)/(S+W+F)),100,2)
| eval sign=round(SuccessPerc, 0)
| eval colorCd= if(sign&amp;gt;=95,"GREEN",if(95&amp;gt;sign AND sign&amp;gt;=80,"YELLOW", "RED"))
| eval ApplicationName=APPLICATION."|".'colorCd'
&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;$sltd_tm.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$sltd_tm.latest$&amp;lt;/earliest&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
&amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
&amp;lt;format type="color"&amp;gt;
&amp;lt;colorPalette type="expression"&amp;gt;
case (match(value,"RED"), "#DC4E41", match(value,"YELLOW"),"#F88E34",match(value,"GREEN"),"#53A051")
&amp;lt;/colorPalette&amp;gt;
&amp;lt;/format&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="583a918a-42d7-43e2-b79a-447e19b0d77f.jpg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18146iA90ABD160A5DCE01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="583a918a-42d7-43e2-b79a-447e19b0d77f.jpg" alt="583a918a-42d7-43e2-b79a-447e19b0d77f.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 15:25:52 GMT</pubDate>
    <dc:creator>thatsabhijeet</dc:creator>
    <dc:date>2022-02-28T15:25:52Z</dc:date>
    <item>
      <title>Help with CSS partially not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586690#M204356</link>
      <description>&lt;P&gt;I am trying to hide RED, GREEN and YELLOW, but the xml css is not working for me.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;style&amp;gt;
#tbl_Summary tbody td div.multivalue-subcell[data-mv-index="1"]
{display: none;}
&amp;lt;/style&amp;gt;
&amp;lt;/html&amp;gt;

&amp;lt;table id="tbl_Summary"&amp;gt;
&amp;lt;title&amp;gt;Summary&amp;lt;/title&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;
index=*xyz
| eval calsuc=case(match('code',"1"), "SUCCESS", match('code',"2"), "WARNING", match('code',"1"), "FAILURE")
| dedup requestId
| eval APPLICATION=case(like('apn',"/PROFILE"),"PROFILE")
| stats Count as "Total Count" count(eval(calsuc="SUCCESS")) as "TotalSuccess" count(eval(calsuc="WARNING")) as "TotalWarning" count(eval(calsuc="FAILURE")) as "TotalFailure"
| rename TotalSuccess as S, TotalWarning as W, TotalFailure as F
| eval SuccessPerc=round(((S)/(S+W+F)),100,2)
| eval sign=round(SuccessPerc, 0)
| eval colorCd= if(sign&amp;gt;=95,"GREEN",if(95&amp;gt;sign AND sign&amp;gt;=80,"YELLOW", "RED"))
| eval ApplicationName=APPLICATION."|".'colorCd'
&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;$sltd_tm.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$sltd_tm.latest$&amp;lt;/earliest&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
&amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
&amp;lt;format type="color"&amp;gt;
&amp;lt;colorPalette type="expression"&amp;gt;
case (match(value,"RED"), "#DC4E41", match(value,"YELLOW"),"#F88E34",match(value,"GREEN"),"#53A051")
&amp;lt;/colorPalette&amp;gt;
&amp;lt;/format&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="583a918a-42d7-43e2-b79a-447e19b0d77f.jpg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18146iA90ABD160A5DCE01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="583a918a-42d7-43e2-b79a-447e19b0d77f.jpg" alt="583a918a-42d7-43e2-b79a-447e19b0d77f.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 15:25:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586690#M204356</guid>
      <dc:creator>thatsabhijeet</dc:creator>
      <dc:date>2022-02-28T15:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: CSS partially not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586701#M204359</link>
      <description>&lt;P&gt;For this technique to work, you missed an essential detail. The colour has to be in a multivalue field&lt;/P&gt;&lt;P&gt;Change&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval ApplicationName=APPLICATION."|".'colorCd'&lt;/LI-CODE&gt;&lt;P&gt;to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval ApplicationName=mvappend(APPLICATION,colorCd)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 26 Feb 2022 09:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586701#M204359</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-26T09:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: CSS partially not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586706#M204361</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, It is working for the above mentioned table. But when I use the same in another table, the data inside the cell is getting hidden.&lt;BR /&gt;&lt;BR /&gt;Here is the below code and screenshot.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;row&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;panel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;style&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#highlight tbody td div.multivalue-subcell[data-mv-index="1"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{display: none;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/style&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;table id="highlight"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;title&amp;gt;Profile&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;search&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;query&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;index=*xyz&amp;nbsp;apn IN (/PROFILE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval calsuc=case(match('code',"1"), "SUCCESS",&amp;nbsp;match('code',"2"), "WARNING",&amp;nbsp;match('code',"1"), "FAILURE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| dedup requestId&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats&amp;nbsp; count(eval(calsuc="SUCCESS")) as "TotalSuccess"&amp;nbsp;count(eval(calsuc="WARNING")) as "TotalWarning"&amp;nbsp;count(eval(calsuc="FAILURE")) as "TotalFailure"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| rename&amp;nbsp;TotalSuccess as S,&amp;nbsp;TotalWarning as W,&amp;nbsp;TotalFailure as F&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval SuccessPerc=round(((S)/(S+W+F)),100,2)&lt;BR /&gt;| eval WarningPerc=round(((W)/(S+W+F)),100,2)&lt;BR /&gt;| eval FailurePerc=round(((F)/(S+W+F)),100,2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval sign=round(SuccessPerc, 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval colorCd= if(sign&amp;gt;=95,"GREEN",if(95&amp;gt;sign AND sign&amp;gt;=80,"YELLOW", "RED"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval TotalCount=mvappend("SUCCESS "+" : "+'SUCCESS' +"("+'SuccessPerc'+")",&amp;nbsp; "WARNING"+" : "+'WARNING' +"("+'WarningPerc'+")", "FAILURE"+" : "+'FAILURE' +"("+'FailurePerc'+")")&lt;BR /&gt;&lt;/SPAN&gt;| eval status=mvjoin(Totalcount,"&amp;nbsp; ")&lt;BR /&gt;| eval statusNew=mvappend(status, colorCd)&lt;BR /&gt;| chart values(statusNew) as tot by flowNm Country&lt;BR /&gt;| fillnull value="No Value"&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/query&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;earliest&amp;gt;$sltd_tm.earliest$&amp;lt;/earliest&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;latest&amp;gt;$sltd_tm.latest$&amp;lt;/earliest&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/search&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;format type="color"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;colorPalette type="expression"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;case (match(value,"RED"), "#DC4E41", match(value,"YELLOW"),"#F88E34",match(value,"GREEN"),"#53A051")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/colorPalette&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/format&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/table&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/panel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/row&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test image1.JPG" style="width: 652px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18148i90EB277A43E89BB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="test image1.JPG" alt="test image1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test image2.JPG" style="width: 725px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18147i2B76176E9DCD8A89/image-size/large?v=v2&amp;amp;px=999" role="button" title="test image2.JPG" alt="test image2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 10:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586706#M204361</guid>
      <dc:creator>thatsabhijeet</dc:creator>
      <dc:date>2022-02-26T10:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: CSS partially not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586708#M204362</link>
      <description>&lt;P&gt;Try changing&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart values(statusNew) as tot by flowNm Country&lt;/LI-CODE&gt;&lt;P&gt;to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart list(statusNew) as tot by flowNm Country&lt;/LI-CODE&gt;&lt;P&gt;This is because values() puts the values in (lexicographically) sorted order whereas list() does not sort. YELLOW comes after SUCCESS, so is at index 1, whereas GREEN and RED come before SUCCESS so end up at index 0.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 10:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586708#M204362</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-26T10:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: CSS partially not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586709#M204363</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;It works perfectly fine now. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 10:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-CSS-partially-not-working/m-p/586709#M204363</guid>
      <dc:creator>thatsabhijeet</dc:creator>
      <dc:date>2022-02-26T10:56:38Z</dc:date>
    </item>
  </channel>
</rss>

