<?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 can make every 2 columns of table as same colour? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/545683#M154625</link>
    <description>&lt;P&gt;Give your table an id and add a hidden style panel&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;title&amp;gt;Only SimpleXML no JS required&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #tableColumnPairs th:nth-child(4n+0),
          #tableColumnPairs td:nth-child(4n+0),
          #tableColumnPairs th:nth-child(4n+1),
          #tableColumnPairs td:nth-child(4n+1){
            background: #cccc00 !important;
          }
          #tableColumnPairs th:nth-child(4n+2),
          #tableColumnPairs td:nth-child(4n+2),
          #tableColumnPairs th:nth-child(4n+3),
          #tableColumnPairs td:nth-child(4n+3){
            background: #cc0000 !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table id="tableColumnPairs "&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 27 Mar 2021 10:25:57 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-03-27T10:25:57Z</dc:date>
    <item>
      <title>How can make every 2 columns of table as same colour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/545646#M154606</link>
      <description>&lt;P&gt;I have a big table which is not easy to group on visualizations. Can I make each 2 columns as same color group so that can see them together&amp;nbsp; immediately. For example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jenniferhao_0-1616783879400.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13510iB2EA272C0376A521/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jenniferhao_0-1616783879400.png" alt="jenniferhao_0-1616783879400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 18:40:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/545646#M154606</guid>
      <dc:creator>jenniferhao</dc:creator>
      <dc:date>2021-03-26T18:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can make every 2 columns of table as same colour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/545683#M154625</link>
      <description>&lt;P&gt;Give your table an id and add a hidden style panel&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;title&amp;gt;Only SimpleXML no JS required&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #tableColumnPairs th:nth-child(4n+0),
          #tableColumnPairs td:nth-child(4n+0),
          #tableColumnPairs th:nth-child(4n+1),
          #tableColumnPairs td:nth-child(4n+1){
            background: #cccc00 !important;
          }
          #tableColumnPairs th:nth-child(4n+2),
          #tableColumnPairs td:nth-child(4n+2),
          #tableColumnPairs th:nth-child(4n+3),
          #tableColumnPairs td:nth-child(4n+3){
            background: #cc0000 !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table id="tableColumnPairs "&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 27 Mar 2021 10:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/545683#M154625</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-27T10:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can make every 2 columns of table as same colour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/547066#M155085</link>
      <description>&lt;P&gt;Sorry for reply late. I did the testing but it seems not working.&amp;nbsp;&lt;BR /&gt;&amp;lt;dashboard&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel depends="$stayhidden$"&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;#tableColumnPairs th:nth-child(4n+0),&lt;BR /&gt;#tableColumnPairs td:nth-child(4n+0),&lt;BR /&gt;#tableColumnPairs th:nth-child(4n+1),&lt;BR /&gt;#tableColumnPairs td:nth-child(4n+1){&lt;BR /&gt;background: #cc0000 !important;&lt;BR /&gt;}&lt;BR /&gt;#tableColumnPairs th:nth-child(4n+2),&lt;BR /&gt;#tableColumnPairs td:nth-child(4n+2),&lt;BR /&gt;#tableColumnPairs th:nth-child(4n+3),&lt;BR /&gt;#tableColumnPairs td:nth-child(4n+3){&lt;BR /&gt;background: #cc0000 !important;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;table id="tableColumnPairs"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Table with Value and Color Combined &amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| makeresults&lt;BR /&gt;| eval data= "C1 1 2 10 20 5 2 12 9 33 1 14 5;C2 3 2 5 4 11 2 32 5 44 1 88 2;C3 5 4 5 3 6 8 12 9 18 3 7 2;C4 6 4 8 2 77 5 45 3 12 5 87 9;"&lt;BR /&gt;| makemv data delim=";"&lt;BR /&gt;| mvexpand data&lt;BR /&gt;| makemv data delim=" "&lt;BR /&gt;| eval Client=mvindex(data,0), pre1=mvindex(data,1), post1=mvindex(data,2), pre2=mvindex(data,3), post2=mvindex(data,4),pre3=mvindex(data,5), post3=mvindex(data,6),pre4=mvindex(data,7), post4=mvindex(data,8),pre5=mvindex(data,9), post5=mvindex(data,10),pre6=mvindex(data,11), post6=mvindex(data,12)&lt;BR /&gt;| fields - _time data&lt;BR /&gt;|table pre1 post1 pre2 post2 pre3 post3 pre4 post4 pre5 post5 pre6 post6&lt;BR /&gt;&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-24h@h&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;10&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;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/dashboard&amp;gt;&amp;lt;dashboard&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel depends="$stayhidden$"&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;#tableColumnPairs th:nth-child(4n+0),&lt;BR /&gt;#tableColumnPairs td:nth-child(4n+0),&lt;BR /&gt;#tableColumnPairs th:nth-child(4n+1),&lt;BR /&gt;#tableColumnPairs td:nth-child(4n+1){&lt;BR /&gt;background: #cc0000 !important;&lt;BR /&gt;}&lt;BR /&gt;#tableColumnPairs th:nth-child(4n+2),&lt;BR /&gt;#tableColumnPairs td:nth-child(4n+2),&lt;BR /&gt;#tableColumnPairs th:nth-child(4n+3),&lt;BR /&gt;#tableColumnPairs td:nth-child(4n+3){&lt;BR /&gt;background: #cc0000 !important;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;table id="tableColumnPairs"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Table with Value and Color Combined &amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| makeresults&lt;BR /&gt;| eval data= "C1 1 2 10 20 5 2 12 9 33 1 14 5;C2 3 2 5 4 11 2 32 5 44 1 88 2;C3 5 4 5 3 6 8 12 9 18 3 7 2;C4 6 4 8 2 77 5 45 3 12 5 87 9;"&lt;BR /&gt;| makemv data delim=";"&lt;BR /&gt;| mvexpand data&lt;BR /&gt;| makemv data delim=" "&lt;BR /&gt;| eval Client=mvindex(data,0), pre1=mvindex(data,1), post1=mvindex(data,2), pre2=mvindex(data,3), post2=mvindex(data,4),pre3=mvindex(data,5), post3=mvindex(data,6),pre4=mvindex(data,7), post4=mvindex(data,8),pre5=mvindex(data,9), post5=mvindex(data,10),pre6=mvindex(data,11), post6=mvindex(data,12)&lt;BR /&gt;| fields - _time data&lt;BR /&gt;|table pre1 post1 pre2 post2 pre3 post3 pre4 post4 pre5 post5 pre6 post6&lt;BR /&gt;&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-24h@h&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;10&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;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/dashboard&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jenniferhao_0-1617811055714.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13656i45E007C342F35FD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jenniferhao_0-1617811055714.png" alt="jenniferhao_0-1617811055714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 15:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/547066#M155085</guid>
      <dc:creator>jenniferhao</dc:creator>
      <dc:date>2021-04-07T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can make every 2 columns of table as same colour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/547069#M155086</link>
      <description>&lt;P&gt;Apart from using the same colour for both sets of pairs of columns, I can't see anything wrong, indeed, it works for me&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1617812742925.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13657i0CF4B7A2E2DCF21A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1617812742925.png" alt="ITWhisperer_0-1617812742925.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 16:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/547069#M155086</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-07T16:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can make every 2 columns of table as same colour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/547439#M155245</link>
      <description>&lt;P&gt;I tested it on the last Splunk(8.1.3). It works well. But our PROD version is&amp;nbsp;Splunk Enterprise Version:7.3.3Build:7af3758d0d5e. But it doesn't work at all. Anyway thanks for help.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 20:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/547439#M155245</guid>
      <dc:creator>jenniferhao</dc:creator>
      <dc:date>2021-04-09T20:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can make every 2 columns of table as same colour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/547444#M155246</link>
      <description>&lt;P&gt;I don't have that build available (at the moment) but my guess would be that the HTML is constructed differently, perhaps the id is not passed in the same way or the table is built differently. If you can inspect the page, perhaps we can work out a fix or you upgrade production &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 21:02:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-make-every-2-columns-of-table-as-same-colour/m-p/547444#M155246</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-09T21:02:10Z</dc:date>
    </item>
  </channel>
</rss>

