<?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 hide the table rows base on the string match in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-the-table-rows-base-on-the-string-match/m-p/584491#M203540</link>
    <description>&lt;P&gt;There are conflicting requirements here - csv export will export what is showing in the table&lt;/P&gt;&lt;P&gt;However, there are potentially a couple of ways you might approach it. One way would be to create a multi-value version of the fields where the name is Raju and then hide the second value. The problem with this is that you still see a row with no data, and the data is still not exported as csv, although if you export as JSON for example, you would still get the hidden data&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$STYLES$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #hideraju td div.multivalue-subcell[data-mv-index="1"] {
            display: none !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel id="hideraju"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
| makeresults count=6 
| eval name=mvindex(split("Vinod|Raju","|"),random()%2) 
| eval distance=mvindex(split("10KM|20KM","|"),random()%3) 
| eval city=mvindex(split("Vizag|Hyderabad","|"),random()%2)
| eval name=if(name="Raju",mvappend("",name),name)
| eval distance=if(name="Raju",mvappend("",distance),distance)
| eval city=if(name="Raju",mvappend("",city),city)
| table name distance city
          &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;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1644486334710.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17930iD1D0E40AE2F2B951/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1644486334710.png" alt="ITWhisperer_0-1644486334710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Another possibility is that you might be able to have say white text on a white background, if the name was Raju. I haven't tried this but would imagine that it would work in a similar manner in that a hidden multivalue would be added to each cell if the name was Raju and a style would be applied to change the text and background to the same colour.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 09:48:33 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-02-10T09:48:33Z</dc:date>
    <item>
      <title>How to hide the table rows base on the string match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-the-table-rows-base-on-the-string-match/m-p/584479#M203533</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;I need a help in solving one of the issue, I have a table which is Shown below,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I just want to hide the rows with the name consisting of "Raju", also if we export this table to CSV , it should export all the results including the name "Raju"&lt;BR /&gt;&lt;BR /&gt;Can any one Please help us to solve this.&lt;BR /&gt;&lt;BR /&gt;Thankyou.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinod743374_0-1644475587108.png" style="width: 749px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17926i5F57931ED4B407C3/image-dimensions/749x118?v=v2" width="749" height="118" role="button" title="vinod743374_0-1644475587108.png" alt="vinod743374_0-1644475587108.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 08:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-hide-the-table-rows-base-on-the-string-match/m-p/584479#M203533</guid>
      <dc:creator>vinod743374</dc:creator>
      <dc:date>2022-02-10T08:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the table rows base on the string match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-the-table-rows-base-on-the-string-match/m-p/584491#M203540</link>
      <description>&lt;P&gt;There are conflicting requirements here - csv export will export what is showing in the table&lt;/P&gt;&lt;P&gt;However, there are potentially a couple of ways you might approach it. One way would be to create a multi-value version of the fields where the name is Raju and then hide the second value. The problem with this is that you still see a row with no data, and the data is still not exported as csv, although if you export as JSON for example, you would still get the hidden data&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$STYLES$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #hideraju td div.multivalue-subcell[data-mv-index="1"] {
            display: none !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel id="hideraju"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
| makeresults count=6 
| eval name=mvindex(split("Vinod|Raju","|"),random()%2) 
| eval distance=mvindex(split("10KM|20KM","|"),random()%3) 
| eval city=mvindex(split("Vizag|Hyderabad","|"),random()%2)
| eval name=if(name="Raju",mvappend("",name),name)
| eval distance=if(name="Raju",mvappend("",distance),distance)
| eval city=if(name="Raju",mvappend("",city),city)
| table name distance city
          &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;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1644486334710.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17930iD1D0E40AE2F2B951/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1644486334710.png" alt="ITWhisperer_0-1644486334710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Another possibility is that you might be able to have say white text on a white background, if the name was Raju. I haven't tried this but would imagine that it would work in a similar manner in that a hidden multivalue would be added to each cell if the name was Raju and a style would be applied to change the text and background to the same colour.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 09:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-hide-the-table-rows-base-on-the-string-match/m-p/584491#M203540</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-10T09:48:33Z</dc:date>
    </item>
  </channel>
</rss>

