<?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: Reference to the variable from the query in XML in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670139#M27738</link>
    <description>&lt;LI-CODE lang="markup"&gt;        &amp;lt;format type="color" field="nemeOfColumn"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case(value=="True", "#00ff00")&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 29 Nov 2023 11:03:26 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-11-29T11:03:26Z</dc:date>
    <item>
      <title>Reference to the variable from the query in XML</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670132#M27737</link>
      <description>&lt;P&gt;Hi, I have a dashboard in Splunk and I have a question&lt;/P&gt;
&lt;P&gt;About the query, I have a line of fields and I have a column. and I want to color specific color if a specific field is true. how to do that. the line in the dashboard of a specific column looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;format type="color" field="nemeOfColumn"&amp;gt; &amp;lt;colorPallete&amp;gt;&amp;lt;/colorPallete&amp;gt;&amp;lt;/format&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670132#M27737</guid>
      <dc:creator>Bracha</dc:creator>
      <dc:date>2023-11-29T11:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to the variable from the query in XML</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670139#M27738</link>
      <description>&lt;LI-CODE lang="markup"&gt;        &amp;lt;format type="color" field="nemeOfColumn"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case(value=="True", "#00ff00")&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 Nov 2023 11:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670139#M27738</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-29T11:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to the variable from the query in XML</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670162#M27739</link>
      <description>&lt;P&gt;but I have 2 fields, and I want to color the first field according to the value of the second field- if true then color it red. the fields are defined as eval in query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 12:19:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670162#M27739</guid>
      <dc:creator>Bracha</dc:creator>
      <dc:date>2023-11-29T12:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to the variable from the query in XML</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670174#M27740</link>
      <description>&lt;P&gt;That is a different question (which has been answered many times before). Essentially, you make you field a multivalue field and hide the second value with CSS, but you can sill use the (hidden) value to select the colour by expression.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-row-if-unique-values-exist-within-dynamic-pivot-table/m-p/560950/highlight/true#M39026" target="_blank"&gt;Solved: Re: Highlight row if unique values exist within dy... - Splunk Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 12:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670174#M27740</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-29T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to the variable from the query in XML</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670550#M27755</link>
      <description>&lt;P&gt;It's not exactly the same question.&lt;BR /&gt;My question is how do I color a field according to another field&lt;BR /&gt;The query looks like this:&lt;/P&gt;&lt;P&gt;&amp;lt;query&amp;gt;&lt;/P&gt;&lt;P&gt;stats count(Code) as count_by_id&lt;/P&gt;&lt;P&gt;count(eval(like(message, %READ-ERROR -&amp;amp;gt; DP is temporarily down%))) as read_error_count&lt;/P&gt;&lt;P&gt;&amp;lt;/query&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to color the read_error_count column according to the count_by_id variable&lt;BR /&gt;How do I do this in XML?&lt;BR /&gt;&lt;BR /&gt;&amp;lt;option name= "count"&amp;gt;13&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;option name= "dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;option name= "drilldown"&amp;gt;row&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;option name= "wrap"&amp;gt;true&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;format type = "color" field= "read_error_count"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;colorPallete type="list"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;colorPalleteEntry&amp;gt;&amp;lt;/colorPalleteEntry&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/colorPallete&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/format&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168" target="_blank" rel="noopener"&gt;@ITWhisperer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 09:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670550#M27755</guid>
      <dc:creator>Bracha</dc:creator>
      <dc:date>2023-12-03T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to the variable from the query in XML</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670554#M27756</link>
      <description>&lt;P&gt;Correct, the question is not identical, but the essence of the question is, that is, how to colour cells based on the value in another cell on the same row, in your case you want the read_error_count colour based on the value of the count_by_id. To do this, as I said earlier, and is shown in more detail in the referenced solution, you use mvappend to add a second value to the read_error_coiunt field based on the value of the count_by_id field&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval read_error_count=if(count_by_id &amp;gt; 10, mvappend(read_error_count,"RED"), read_error_count)&lt;/LI-CODE&gt;&lt;P&gt;Then use CSS to hide the second multi-value cell and set the palette to change the colour if "RED" is a value&lt;/P&gt;&lt;P&gt;You can use other strings and colours to your requirements.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 10:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670554#M27756</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-03T10:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to the variable from the query in XML</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670555#M27757</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats count(eval(like(message, %READ-ERROR -&amp;amp;gt; DP is temporarily down%))) as read_error_count
|stats count(Code) as count_by_id
|eval color_value = if(read_error_count &amp;amp;gt; count/2 ,0,1)&lt;/LI-CODE&gt;&lt;P&gt;i want color&amp;nbsp;read_error_count column by color_value result&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 12:22:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670555#M27757</guid>
      <dc:creator>Bracha</dc:creator>
      <dc:date>2023-12-03T12:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to the variable from the query in XML</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670556#M27758</link>
      <description>&lt;P&gt;I am not sure why you are not adapting my previous suggestion - try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count(eval(like(message, "%READ-ERROR -&amp;amp;gt; DP is temporarily down%"))) as read_error_count count(Code) as count_by_id
|eval read_error_count = if(read_error_count &amp;amp;gt; count_by_id/2 ,mvappend(read_error_count,"RED"), read_error_count)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 12:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Reference-to-the-variable-from-the-query-in-XML/m-p/670556#M27758</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-03T12:31:10Z</dc:date>
    </item>
  </channel>
</rss>

