<?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 filter the values of 5 columns using checkbox? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-values-of-5-columns-using-checkbox/m-p/434930#M124048</link>
    <description>&lt;P&gt;what happens if i just choose column1 ? is it supposed to return rows 1 and 3 as the result? Also, why do you want a check box and not a multiselect input token?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 20:12:52 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2019-04-30T20:12:52Z</dc:date>
    <item>
      <title>How to filter the values of 5 columns using checkbox?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-values-of-5-columns-using-checkbox/m-p/434929#M124047</link>
      <description>&lt;P&gt;Let's imagine that I have a table as the picture below displayed.&lt;BR /&gt;
Column 5 listed the column names who have the "YES" value.&lt;/P&gt;

&lt;P&gt;Now, I need to create a Checkbox, where lists the column names of "column1" to "column 4", if I click "Column2" option in the checkbox, the table would only display where Column5 has "Column2" value. If I click "Column1" and "Column3", the table will only show where column5 has "Column1/ Column3".&lt;/P&gt;

&lt;P&gt;I know how to list all the values of Column 5 in the checkbox, but I just need to show the single value instead of the combined values.&lt;BR /&gt;
Please tell me how to do that,  I hope my explanation is clear, if you are confused, please let me know, thank you very much.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6963i03A10BFCB3DBAA46/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 13:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-values-of-5-columns-using-checkbox/m-p/434929#M124047</guid>
      <dc:creator>Hanliamadeus</dc:creator>
      <dc:date>2019-04-30T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the values of 5 columns using checkbox?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-values-of-5-columns-using-checkbox/m-p/434930#M124048</link>
      <description>&lt;P&gt;what happens if i just choose column1 ? is it supposed to return rows 1 and 3 as the result? Also, why do you want a check box and not a multiselect input token?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 20:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-values-of-5-columns-using-checkbox/m-p/434930#M124048</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-04-30T20:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the values of 5 columns using checkbox?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-values-of-5-columns-using-checkbox/m-p/434931#M124049</link>
      <description>&lt;P&gt;@Hanliamadeus please try the following run anywhere example based on the sample data provided which sets the token &lt;CODE&gt;$tokColumnFilter$&lt;/CODE&gt; set through the checkbox:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Checkbox Filter&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="checkbox" token="tokColumnFilter" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Filter based on Columns&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Column1"&amp;gt;Column1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Column2"&amp;gt;Column2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Column3"&amp;gt;Column3&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Column4"&amp;gt;Column4&amp;lt;/choice&amp;gt;
      &amp;lt;prefix&amp;gt;Column5="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
      &amp;lt;delimiter&amp;gt;/&amp;lt;/delimiter&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| fields - _time
| eval data="YES,NO,YES,NO,Column1/Column3;NO,YES,NO,NO,Column2;YES,NO,YES,YES,Column1/Column3/Column4"
| makemv data delim=";"
| mvexpand data
| makemv data delim=","
| eval Column1=mvindex(data,0),
       Column2=mvindex(data,1),
       Column3=mvindex(data,2),
       Column4=mvindex(data,3),
       Column5=mvindex(data,4)
| fields Column*
| search $tokColumnFilter$&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="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 May 2019 15:10:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-values-of-5-columns-using-checkbox/m-p/434931#M124049</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-05-01T15:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the values of 5 columns using checkbox?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-values-of-5-columns-using-checkbox/m-p/434932#M124050</link>
      <description>&lt;P&gt;Thank you very much for your help! It's a good solution.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 13:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-values-of-5-columns-using-checkbox/m-p/434932#M124050</guid>
      <dc:creator>Hanliamadeus</dc:creator>
      <dc:date>2019-05-02T13:52:44Z</dc:date>
    </item>
  </channel>
</rss>

