<?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 get the Multiselect input to create a search without &amp;quot; when selecting multiple values in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340309#M62765</link>
    <description>&lt;P&gt;try using &lt;CODE&gt;" OR status="&lt;/CODE&gt; as the delimiter &lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 12:36:51 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-12-14T12:36:51Z</dc:date>
    <item>
      <title>How to get the Multiselect input to create a search without " when selecting multiple values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340308#M62764</link>
      <description>&lt;P&gt;I'm trying to create a training dashboard based on Multiselect and the HTTP status code.&lt;BR /&gt;
If I create the Multiselect through the GUI and only select a single value - all works fine.&lt;BR /&gt;
But when I select more than 1 value, the search fails.&lt;BR /&gt;
The reason is that the search is created as ----  status="200 OR 503" ----- (I added the OR separator)&lt;BR /&gt;
If I remove the "" it all works fine but nowhere in the GUI do you have a choice to omit the ""&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 12:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340308#M62764</guid>
      <dc:creator>uthornander_spl</dc:creator>
      <dc:date>2017-12-14T12:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Multiselect input to create a search without " when selecting multiple values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340309#M62765</link>
      <description>&lt;P&gt;try using &lt;CODE&gt;" OR status="&lt;/CODE&gt; as the delimiter &lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 12:36:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340309#M62765</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-12-14T12:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Multiselect input to create a search without " when selecting multiple values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340310#M62766</link>
      <description>&lt;P&gt;Tried a few approaches but your suggestion gives me&lt;BR /&gt;
status="200 OR status=400"&lt;/P&gt;

&lt;P&gt;Then I tried adding a leading " in the separator, but then I get &lt;BR /&gt;
status="400\" OR status=200"&lt;/P&gt;

&lt;P&gt;Trying exactly what you wrote gives me &lt;BR /&gt;
status="200\" OR status=\"400"&lt;/P&gt;

&lt;P&gt;Somehow Search seems to think I don't speak SPL good enough &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
BTW - running on 7.0&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 12:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340310#M62766</guid>
      <dc:creator>uthornander_spl</dc:creator>
      <dc:date>2017-12-14T12:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Multiselect input to create a search without " when selecting multiple values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340311#M62767</link>
      <description>&lt;P&gt;can you send a snippet of the simpleXML for this input? i'm not sure why the &lt;CODE&gt;\\&lt;/CODE&gt; would be added.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 12:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340311#M62767</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-12-14T12:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Multiselect input to create a search without " when selecting multiple values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340312#M62768</link>
      <description>&lt;P&gt;I have to correct myself. This is a 6.6.2 instance for a Rookie session.&lt;BR /&gt;
Here's what the XML looks like:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Blockquote&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="multiselect" token="status_token" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Status&amp;lt;/label&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;status&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;status&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;sourcetype=access_combined* product_id=$product_token|s$| stats count by status&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;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Dec 2017 13:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340312#M62768</guid>
      <dc:creator>uthornander_spl</dc:creator>
      <dc:date>2017-12-14T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Multiselect input to create a search without " when selecting multiple values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340313#M62769</link>
      <description>&lt;P&gt;doing this should work and you shouldn't need the &lt;CODE&gt;|s&lt;/CODE&gt; in &lt;CODE&gt;status_token&lt;/CODE&gt; in your search because the statuses are all numerical fields, so there really isn't a need to enclose them in quotes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="multiselect" token="status_token" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Status&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;status&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;status&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;sourcetype=access_combined* product_id=$product_token|s$| stats count by status&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;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;delimiter&amp;gt; OR status=&amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Dec 2017 13:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340313#M62769</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-12-14T13:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Multiselect input to create a search without " when selecting multiple values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340314#M62770</link>
      <description>&lt;P&gt;Thanks &lt;BR /&gt;
The key was the numerical fields so now the working solution looks like&lt;/P&gt;

&lt;P&gt;sourcetype=access_combined* product_id=$product_token|s$ status=$status_token$| iplocation clientip | geostats count by status&lt;/P&gt;

&lt;P&gt;Didn't see any point in using a different syntax for a numerical field vs a text field - but then again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-Multiselect-input-to-create-a-search-without-quot/m-p/340314#M62770</guid>
      <dc:creator>uthornander_spl</dc:creator>
      <dc:date>2020-09-29T17:14:42Z</dc:date>
    </item>
  </channel>
</rss>

