<?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 Form with a multi-value text box that will OR every input values in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Form-with-a-multi-value-text-box-that-will-OR-every-input-values/m-p/208927#M98788</link>
    <description>&lt;P&gt;How to search multiple values in a text box, that should return results for all the input values.&lt;BR /&gt;
For Ex, i have a textbox named Num in dashboard, now i can search only 1 input value, &lt;BR /&gt;
How can i search multiple values, so that i can enter like 10,12,33 , which returns all 3 input results.&lt;BR /&gt;
The textbox should accept the values like (Num=10 OR Num=12 OR Num=33)&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2016 14:59:56 GMT</pubDate>
    <dc:creator>harish_ka</dc:creator>
    <dc:date>2016-06-13T14:59:56Z</dc:date>
    <item>
      <title>Form with a multi-value text box that will OR every input values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Form-with-a-multi-value-text-box-that-will-OR-every-input-values/m-p/208927#M98788</link>
      <description>&lt;P&gt;How to search multiple values in a text box, that should return results for all the input values.&lt;BR /&gt;
For Ex, i have a textbox named Num in dashboard, now i can search only 1 input value, &lt;BR /&gt;
How can i search multiple values, so that i can enter like 10,12,33 , which returns all 3 input results.&lt;BR /&gt;
The textbox should accept the values like (Num=10 OR Num=12 OR Num=33)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 14:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Form-with-a-multi-value-text-box-that-will-OR-every-input-values/m-p/208927#M98788</guid>
      <dc:creator>harish_ka</dc:creator>
      <dc:date>2016-06-13T14:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Form with a multi-value text box that will OR every input values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Form-with-a-multi-value-text-box-that-will-OR-every-input-values/m-p/208928#M98789</link>
      <description>&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/127021/manipulate-a-token-string-in-a-form.html"&gt;https://answers.splunk.com/answers/127021/manipulate-a-token-string-in-a-form.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Form-with-a-multi-value-text-box-that-will-OR-every-input-values/m-p/208928#M98789</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-13T15:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Form with a multi-value text box that will OR every input values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Form-with-a-multi-value-text-box-that-will-OR-every-input-values/m-p/208929#M98790</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;Bit late in answering (but in case anyone has the same question) I had a bit of help from a colleague on this and it works a treat. Use this xml in a dashboard (against index=_internal) to get an idea of how it works.&lt;/P&gt;

&lt;P&gt;Text Input Multi-value Filter&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="TimePicker"&amp;gt;
  &amp;lt;label&amp;gt;Time Picker&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="text" token="Text_Input"&amp;gt;
  &amp;lt;label&amp;gt;Sourcetype text filter with "," separator. It also uses the rex command in the search so you don't have to worry about spaces.&amp;lt;/label&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;panel&amp;gt;
  &amp;lt;title&amp;gt;Example of events dedup'd by sourcetype&amp;lt;/title&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=_internal  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[ makeresults&lt;BR /&gt;
  | eval sourcetype=$Text_Input$&lt;BR /&gt;
  | makemv tokenizer="([^,]+),?" sourcetype&lt;BR /&gt;
  | mvexpand sourcetype&lt;BR /&gt;
  |rex field=sourcetype mode=sed "s/\s+//g" ]&lt;BR /&gt;
| dedup sourcetype&lt;BR /&gt;
| table _time host source sourcetype&lt;BR /&gt;
          &lt;EARLIEST&gt;$TimePicker.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;$TimePicker.latest$&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;BR /&gt;
        10&lt;BR /&gt;
        none&lt;BR /&gt;
        progressbar&lt;BR /&gt;
      &lt;BR /&gt;
    &lt;BR /&gt;
    &lt;PANEL&gt;&lt;BR /&gt;
      &lt;TITLE&gt;Sourcetypes to filter on.&lt;/TITLE&gt;&lt;BR /&gt;
      &lt;TABLE&gt;&lt;BR /&gt;
        &lt;SEARCH&gt;&lt;BR /&gt;
          &lt;QUERY&gt;index=_internal&lt;BR /&gt;
| stats values(sourcetype)&lt;BR /&gt;
          &lt;EARLIEST&gt;$TimePicker.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;$TimePicker.latest$&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;/QUERY&gt;&lt;BR /&gt;
        none&lt;BR /&gt;
      &lt;/SEARCH&gt;&lt;/TABLE&gt;&lt;BR /&gt;
    &lt;/PANEL&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Form-with-a-multi-value-text-box-that-will-OR-every-input-values/m-p/208929#M98790</guid>
      <dc:creator>gjones_splunk</dc:creator>
      <dc:date>2020-09-30T02:43:16Z</dc:date>
    </item>
  </channel>
</rss>

