<?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: Need to create a Dashboard which can select multiple fields based on user selection of checkbox/ radio button. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413702#M119230</link>
    <description>&lt;P&gt;@jithinmathew,&lt;BR /&gt;
That's simple, just change the radio button to checkbox&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Radio Button&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="checkbox" token="sourcetype"&amp;gt;
      &amp;lt;label&amp;gt;Sourc e Type&amp;lt;/label&amp;gt;
      &amp;lt;choice value="splunkd"&amp;gt;SPLUNKD&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="kvstore"&amp;gt;KVSTORE&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="audittrail"&amp;gt;AUDIT TRIAL&amp;lt;/choice&amp;gt;
      &amp;lt;valuePrefix&amp;gt;sourcetype="&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
      &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="searchbox"&amp;gt;
      &amp;lt;label&amp;gt;Search Box&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;$sourcetype$&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;$sourcetype$&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="radio" token="index" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Include Index In Group By?&amp;lt;/label&amp;gt;
      &amp;lt;choice value="index"&amp;gt;Yes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value=""&amp;gt;No&amp;lt;/choice&amp;gt;
      &amp;lt;prefix&amp;gt;, &amp;lt;/prefix&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Value from Search Filter : $sourcetype$&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_* $sourcetype$|stats count by sourcetype $index$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 Aug 2018 04:54:11 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-08-21T04:54:11Z</dc:date>
    <item>
      <title>Need to create a Dashboard which can select multiple fields based on user selection of checkbox/ radio button.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413699#M119227</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I Need to create a Dashboard which can select multiple extracted fields based on user selection of checkbox/ radio button.&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/5590iC3D34C6AC522786D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;For example, I want the user to be able to search with both fields ServiceID AND Username.  I currently have the single search functionality working but I cant seem to think of how I will pass multiple fields.&lt;/P&gt;

&lt;P&gt;Will greatly appreciate any help with this.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 00:27:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413699#M119227</guid>
      <dc:creator>jithinmathew</dc:creator>
      <dc:date>2018-08-21T00:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create a Dashboard which can select multiple fields based on user selection of checkbox/ radio button.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413700#M119228</link>
      <description>&lt;P&gt;@jithinmathew,&lt;/P&gt;

&lt;P&gt;Are you looking for something similar?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Radio Button&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="radio" token="sourcetype"&amp;gt;
      &amp;lt;label&amp;gt;Sourc e Type&amp;lt;/label&amp;gt;
      &amp;lt;choice value="splunkd"&amp;gt;SPLUNKD&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="kvstore"&amp;gt;KVSTORE&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="audittrail"&amp;gt;AUDIT TRIAL&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="searchbox"&amp;gt;
      &amp;lt;label&amp;gt;Search Box&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;$sourcetype$&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;$sourcetype$&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="radio" token="index" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Include Index In Group By?&amp;lt;/label&amp;gt;
      &amp;lt;choice value="index"&amp;gt;Yes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value=""&amp;gt;No&amp;lt;/choice&amp;gt;
      &amp;lt;prefix&amp;gt;, &amp;lt;/prefix&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Value from Search Filter : $sourcetype$&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_* sourcetype=$sourcetype$|stats count by sourcetype $index$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Aug 2018 02:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413700#M119228</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-21T02:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create a Dashboard which can select multiple fields based on user selection of checkbox/ radio button.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413701#M119229</link>
      <description>&lt;P&gt;Hmm no, for example, I want the user to be able to search both splunkd and KVSTORE at the same time instead of one each.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 04:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413701#M119229</guid>
      <dc:creator>jithinmathew</dc:creator>
      <dc:date>2018-08-21T04:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create a Dashboard which can select multiple fields based on user selection of checkbox/ radio button.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413702#M119230</link>
      <description>&lt;P&gt;@jithinmathew,&lt;BR /&gt;
That's simple, just change the radio button to checkbox&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Radio Button&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="checkbox" token="sourcetype"&amp;gt;
      &amp;lt;label&amp;gt;Sourc e Type&amp;lt;/label&amp;gt;
      &amp;lt;choice value="splunkd"&amp;gt;SPLUNKD&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="kvstore"&amp;gt;KVSTORE&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="audittrail"&amp;gt;AUDIT TRIAL&amp;lt;/choice&amp;gt;
      &amp;lt;valuePrefix&amp;gt;sourcetype="&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
      &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="searchbox"&amp;gt;
      &amp;lt;label&amp;gt;Search Box&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;$sourcetype$&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;$sourcetype$&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="radio" token="index" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Include Index In Group By?&amp;lt;/label&amp;gt;
      &amp;lt;choice value="index"&amp;gt;Yes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value=""&amp;gt;No&amp;lt;/choice&amp;gt;
      &amp;lt;prefix&amp;gt;, &amp;lt;/prefix&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Value from Search Filter : $sourcetype$&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_* $sourcetype$|stats count by sourcetype $index$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Aug 2018 04:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413702#M119230</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-21T04:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need to create a Dashboard which can select multiple fields based on user selection of checkbox/ radio button.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413703#M119231</link>
      <description>&lt;P&gt;Hi jithinmathew,&lt;BR /&gt;
I had a similar problem and I solved it creating a filter for each field.&lt;/P&gt;

&lt;P&gt;In addition you have to manage the problem that not all the fields had 100% values so if you use "All" (&lt;EM&gt;) as default for all fields  you exclude all the events that haven't one of the fields.&lt;BR /&gt;
To manage this problem, you have to use ad default something like: `Username=&lt;/EM&gt; OR NOT Username=*`&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 05:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-create-a-Dashboard-which-can-select-multiple-fields/m-p/413703#M119231</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-08-21T05:53:52Z</dc:date>
    </item>
  </channel>
</rss>

