<?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: Can the default be a new search in multiselect? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-the-default-be-a-new-search-in-multiselect/m-p/401889#M116295</link>
    <description>&lt;P&gt;@hketer,&lt;/P&gt;

&lt;P&gt;Add this to your dashboard and check.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;
  &amp;lt;query&amp;gt;| inputlookup append=t MappingDemo.csv | search customField=$splunkField$ | fields soc3dField | stats values(soc3dField) as defaultValue | eval defaultValue=mvjoin(" ,")&amp;lt;/query&amp;gt;
  &amp;lt;done&amp;gt;
    &amp;lt;set token="defaultValue"&amp;gt;$result.defaultValue$&amp;lt;/set&amp;gt;
  &amp;lt;/done&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set default value to..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;default&amp;gt;$defaultValue$&amp;lt;/default&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps!!!&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 14:41:55 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2019-06-10T14:41:55Z</dc:date>
    <item>
      <title>Can the default be a new search in multiselect?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-the-default-be-a-new-search-in-multiselect/m-p/401886#M116292</link>
      <description>&lt;P&gt;Hi Everyone!&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/7141iC36D1B2B98B71E99/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;Like you, I have a text box (Splunk Field) that can get the value as a token by clicking from the table on the left side. &lt;BR /&gt;
The token is &lt;CODE&gt;$splunkField$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I defined multiselect (Mapping options) that contain list of values I get from a search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=t $fldMappingSet$.csv | fields soc3dField
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My question is,  can I display in the multiselect values from a new search as default?&lt;BR /&gt;
I mean according to the token in the textbox I want the multiselect that will choose the values by default (with another search )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup append=t MappingDemo.csv | search customField=$splunkField$  | fields soc3dField
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Like this for example:&lt;BR /&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/7142i3E3DDD876CEF0F22/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;I hope I've explained myself well. &lt;/P&gt;

&lt;P&gt;Thank you all!!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 09:04:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-the-default-be-a-new-search-in-multiselect/m-p/401886#M116292</guid>
      <dc:creator>hketer</dc:creator>
      <dc:date>2019-06-03T09:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can the default be a new search in multiselect?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-the-default-be-a-new-search-in-multiselect/m-p/401887#M116293</link>
      <description>&lt;P&gt;@hketer are you looking for something like the following old answer or mine?&lt;/P&gt;

&lt;P&gt;Comma separated values in the Text Box is ued to select the values in the multiselect: &lt;A href="https://answers.splunk.com/answers/582644/how-do-i-populate-a-multiselect-input-box-with-dri.html"&gt;https://answers.splunk.com/answers/582644/how-do-i-populate-a-multiselect-input-box-with-dri.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 15:35:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-the-default-be-a-new-search-in-multiselect/m-p/401887#M116293</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-06-06T15:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can the default be a new search in multiselect?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-the-default-be-a-new-search-in-multiselect/m-p/401888#M116294</link>
      <description>&lt;P&gt;Hey @niketnilay !&lt;/P&gt;

&lt;P&gt;I don't think its the same&lt;/P&gt;

&lt;P&gt;this is part of the XML I have&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;set token="customm"&amp;gt;$row.SOC3D field name$&amp;lt;/set&amp;gt;
      &amp;lt;set token="splunkField"&amp;gt;$row.SPLUNK field name$&amp;lt;/set&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;Update Mapping Set&amp;lt;/title&amp;gt;
  &amp;lt;input type="text" token="splunkFieldText" id="splunkFieldID" searchWhenChanged="false"&amp;gt;
    &amp;lt;label&amp;gt;Splunk Field&amp;lt;/label&amp;gt;
    &amp;lt;default&amp;gt;$splunkField$&amp;lt;/default&amp;gt;
  &amp;lt;/input&amp;gt;
  &amp;lt;input type="multiselect" token="MappMultiSelect" searchWhenChanged="false"&amp;gt;
    &amp;lt;label&amp;gt;Mapping options&amp;lt;/label&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;| inputlookup append=t $fldMappingSet$.csv | fields soc3dField&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    **&amp;lt;default&amp;gt;
    &amp;lt;/default&amp;gt;**
    &amp;lt;fieldForLabel&amp;gt;soc3dField&amp;lt;/fieldForLabel&amp;gt;
    &amp;lt;fieldForValue&amp;gt;soc3dField&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;delimiter&amp;gt; ,&amp;lt;/delimiter&amp;gt;
  &amp;lt;/input&amp;gt;
  &amp;lt;html&amp;gt;
            &amp;lt;!-- Set the $show_chart$ token when the link is clicked, also unset the $show_table$ token --&amp;gt;
            &amp;lt;a href="#" class="btn btn-primary" data-set-token="UpdateLookup" data-value="show" data-unset-token="show_table"&amp;gt;
                Update Mapping Set
            &amp;lt;/a&amp;gt;
        &amp;lt;/html&amp;gt;
  &amp;lt;table depends="$UpdateLookup$"&amp;gt;
    &amp;lt;search base="Update_Mapping"&amp;gt;&amp;lt;/search&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want the default to be a different query.&lt;/P&gt;

&lt;P&gt;I've tried to add &lt;BR /&gt;
and some other labels under the  &lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 07:42:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-the-default-be-a-new-search-in-multiselect/m-p/401888#M116294</guid>
      <dc:creator>hketer</dc:creator>
      <dc:date>2019-06-10T07:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can the default be a new search in multiselect?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-the-default-be-a-new-search-in-multiselect/m-p/401889#M116295</link>
      <description>&lt;P&gt;@hketer,&lt;/P&gt;

&lt;P&gt;Add this to your dashboard and check.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;
  &amp;lt;query&amp;gt;| inputlookup append=t MappingDemo.csv | search customField=$splunkField$ | fields soc3dField | stats values(soc3dField) as defaultValue | eval defaultValue=mvjoin(" ,")&amp;lt;/query&amp;gt;
  &amp;lt;done&amp;gt;
    &amp;lt;set token="defaultValue"&amp;gt;$result.defaultValue$&amp;lt;/set&amp;gt;
  &amp;lt;/done&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set default value to..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;default&amp;gt;$defaultValue$&amp;lt;/default&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 14:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-the-default-be-a-new-search-in-multiselect/m-p/401889#M116295</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-10T14:41:55Z</dc:date>
    </item>
  </channel>
</rss>

