<?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 Visualisation and Color in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525231#M9406</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have started working on Splunk recently and have encountered a problem, I cannot find how to add a color (either green or red) to a cell in a table depending if it is "&amp;lt;" or "&amp;gt;".&lt;/P&gt;&lt;P&gt;Most post which I have read are either too complicated for me or are for numbers. I simply want to highlight the cell with the sign.&lt;/P&gt;&lt;P&gt;I have 3 rows, the first and last are for number and the middle is the sign that i want to highlight.&lt;/P&gt;&lt;P&gt;Is there a way in the Search page to do what i want ?&lt;/P&gt;&lt;P&gt;Here is how I get the correct sign :&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval operator_1 = if( Case1 &amp;gt; Case2 ,"&amp;gt;", if(isnotnull(Case1) ,"&amp;lt;","") )&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Oct 2020 10:00:47 GMT</pubDate>
    <dc:creator>Cam_G</dc:creator>
    <dc:date>2020-10-18T10:00:47Z</dc:date>
    <item>
      <title>Visualisation and Color</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525231#M9406</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have started working on Splunk recently and have encountered a problem, I cannot find how to add a color (either green or red) to a cell in a table depending if it is "&amp;lt;" or "&amp;gt;".&lt;/P&gt;&lt;P&gt;Most post which I have read are either too complicated for me or are for numbers. I simply want to highlight the cell with the sign.&lt;/P&gt;&lt;P&gt;I have 3 rows, the first and last are for number and the middle is the sign that i want to highlight.&lt;/P&gt;&lt;P&gt;Is there a way in the Search page to do what i want ?&lt;/P&gt;&lt;P&gt;Here is how I get the correct sign :&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval operator_1 = if( Case1 &amp;gt; Case2 ,"&amp;gt;", if(isnotnull(Case1) ,"&amp;lt;","") )&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 10:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525231#M9406</guid>
      <dc:creator>Cam_G</dc:creator>
      <dc:date>2020-10-18T10:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Visualisation and Color</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525233#M9407</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Table with color Based on Status&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Compliance check&amp;lt;/title&amp;gt;
      &amp;lt;html depends="$alwaysHideHTMLCSSPanel$"&amp;gt;
        &amp;lt;style&amp;gt;
          #tableColorFinalRowBasedOnData table 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="tableColorFinalRowBasedOnData"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults count=10
| eval Case1 = random() % 10, Case2= random() % 10
| eval operator = case( Case1 &amp;amp;gt; Case2 ,"&amp;amp;gt;", Case1 &amp;amp;lt; Case2 ,"&amp;amp;lt;",true(), "=" )
| eval color=case(operator="&amp;amp;gt;","HIGH",operator="&amp;amp;lt;","LOW",true(),NULL)
| foreach Case* operator [ eval &amp;amp;lt;&amp;amp;lt;FIELD&amp;amp;gt;&amp;amp;gt;=mvappend('&amp;amp;lt;&amp;amp;lt;FIELD&amp;amp;gt;&amp;amp;gt;',color)]
| fields - color _time
| table Case1 operator Case2&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;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;format type="color" field="Case1"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case (match(value,"LOW"), "#DC4E41",match(value,"MEDIUM"), "#F8BE34",match(value,"HIGH"),"#53A051")&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
        &amp;lt;format type="color" field="Case2"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case (match(value,"LOW"), "#DC4E41",match(value,"MEDIUM"), "#F8BE34",match(value,"HIGH"),"#53A051")&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
        &amp;lt;format type="color" field="operator"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case (match(value,"LOW"), "#DC4E41",match(value,"MEDIUM"), "#F8BE34",match(value,"HIGH"),"#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;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Row? Not a column?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 10:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525233#M9407</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-10-18T10:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Visualisation and Color</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525234#M9408</link>
      <description>&lt;P&gt;Yes, my bad, I meant column&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 10:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525234#M9408</guid>
      <dc:creator>Cam_G</dc:creator>
      <dc:date>2020-10-18T10:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Visualisation and Color</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525235#M9409</link>
      <description>&lt;P&gt;How about my sample dashboard?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 10:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525235#M9409</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-10-18T10:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Visualisation and Color</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525236#M9410</link>
      <description>&lt;P&gt;I am not too familiar with XML&amp;nbsp; files that is why I hoped that the solution could be put in the Search area.&lt;/P&gt;&lt;P&gt;As of now I am reading through your reply and trying to understand it.&lt;/P&gt;&lt;P&gt;Thank you for the response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 10:21:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525236#M9410</guid>
      <dc:creator>Cam_G</dc:creator>
      <dc:date>2020-10-18T10:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Visualisation and Color</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525257#M9411</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;After much testing, it works fine!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 18:40:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Visualisation-and-Color/m-p/525257#M9411</guid>
      <dc:creator>Cam_G</dc:creator>
      <dc:date>2020-10-18T18:40:41Z</dc:date>
    </item>
  </channel>
</rss>

