<?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: Input multiple values into a dashboard input in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Input-multiple-values-into-a-dashboard-input/m-p/401945#M116301</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Hmm interesting use case. How is the user going to select a value displayed in a text input?&lt;BR /&gt;
I mean say you have something like - hostname1,hostname2,hostname3 displayed within a single text box, how is a selection on hostname going to be made by the user?&lt;BR /&gt;
You say that you do not need a drilldown, which I assume to mean that user selection on hostname does not have any processing on the panel based on the selected hostname?&lt;BR /&gt;
If so, then what is the point of having an input token? I am not understanding your use case.&lt;BR /&gt;
What i do suggest is using the multiselect option - having something like &lt;CODE&gt;index=&amp;lt;your index&amp;gt;| dedup host&lt;/CODE&gt; in the search query inside your token&lt;BR /&gt;
or&lt;BR /&gt;
have a drop down token and have your search as something like - &lt;CODE&gt;index="your index"| stats values(host) as hostname | eval hostname=mvjoin(hostname,",")&lt;/CODE&gt; AND select your inital and default value in the input token settings to this one field.&lt;BR /&gt;
Since, we are joining all available host values into 1 single field the result will always be one single field with  all hostanmes separated by a comma delimiter. Since we select this one field as both initial and default values in the input token the dashboard will always have only this one value&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jun 2018 11:39:11 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2018-06-23T11:39:11Z</dc:date>
    <item>
      <title>Input multiple values into a dashboard input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Input-multiple-values-into-a-dashboard-input/m-p/401944#M116300</link>
      <description>&lt;P&gt;I want to be able to pass multiple values to a field in a dashboard "Endpoint" . Like in the Endpoint Input I want to be able to pass "hostname1 , hostname2 , hostname3" . I dont want to be creating a drilldown. It should be a plain text input with either a "," delimiter or space. Following is my XML code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;label&amp;gt;Endpoint&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;Endpoint Logging Status&amp;lt;/title&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;""index=xyz sourcetype=xyz orig_index=$idx_name$ orig_sourcetype=$st_name$ orig_sourcetype!=stash orig_index!=scratch_01 orig_index!=hpam orig_index!=bsm orig_index!=avs orig_index!=itim orig_index!=ists orig_index!=clm_reports 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;orig_index!=complianceverification orig_host!=xyz orig_host=$splunk_host$ |[search index=xyz sourcetype=xyz orig_index=$idx_name$ orig_sourcetype=$st_name$ orig_sourcetype!=stash orig_index!=scratch_01 orig_index!=hpam orig_index!=bsm orig_index!=avs orig_index!=itim orig_index!=ists orig_index!=clm_reports &lt;BR /&gt;
orig_index!=complianceverification orig_host!=xyz orig_host=$splunk_host$ |eval orig_host="$splunk_host$" | makemv orig_host delim="," | mvexpand orig_host | rex field=orig_host  mode=sed "s/^\s+//g s/\s+$//g"] | rename orig_host AS host |stats max(lastTime) as lastTime by orig_index host orig_sourcetype | lookup xyz_asset_ownership_wildcard src_host AS host OUTPUTNEW organization_unit   | lookup xyz_asset_ownership_wildcard src_ip AS host OUTPUTNEW organization_unit | eval organization_unit=coalesce(organization_unit, "UNKNOWN") | search organization_unit=$coe$  | eval age = now() - lastTime  | eval status=case(age &amp;lt; 14400,"Active",age &amp;lt; 86400,"INACTIVE (4-24hrs)",age &amp;lt; 259200,"INACTIVE (1-3days)",age &amp;lt; 604800,"INACTIVE (3-7days)",age &amp;lt; 2592000,"INACTIVE (7-30days)",age &amp;gt;= 2592000,"INACTIVE &amp;gt; 30days")   | convert ctime(lastTime)   | stats list(lastTime) AS data_last_seen, list(orig_index) AS index, list(orig_sourcetype) AS sourcetype, values(organization_unit) AS "COE", list(status) AS status by host"" &lt;BR /&gt;
          &lt;EARLIEST&gt;$time.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;$time.latest$&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Input-multiple-values-into-a-dashboard-input/m-p/401944#M116300</guid>
      <dc:creator>jkalra</dc:creator>
      <dc:date>2020-09-29T20:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Input multiple values into a dashboard input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Input-multiple-values-into-a-dashboard-input/m-p/401945#M116301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Hmm interesting use case. How is the user going to select a value displayed in a text input?&lt;BR /&gt;
I mean say you have something like - hostname1,hostname2,hostname3 displayed within a single text box, how is a selection on hostname going to be made by the user?&lt;BR /&gt;
You say that you do not need a drilldown, which I assume to mean that user selection on hostname does not have any processing on the panel based on the selected hostname?&lt;BR /&gt;
If so, then what is the point of having an input token? I am not understanding your use case.&lt;BR /&gt;
What i do suggest is using the multiselect option - having something like &lt;CODE&gt;index=&amp;lt;your index&amp;gt;| dedup host&lt;/CODE&gt; in the search query inside your token&lt;BR /&gt;
or&lt;BR /&gt;
have a drop down token and have your search as something like - &lt;CODE&gt;index="your index"| stats values(host) as hostname | eval hostname=mvjoin(hostname,",")&lt;/CODE&gt; AND select your inital and default value in the input token settings to this one field.&lt;BR /&gt;
Since, we are joining all available host values into 1 single field the result will always be one single field with  all hostanmes separated by a comma delimiter. Since we select this one field as both initial and default values in the input token the dashboard will always have only this one value&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jun 2018 11:39:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Input-multiple-values-into-a-dashboard-input/m-p/401945#M116301</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2018-06-23T11:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Input multiple values into a dashboard input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Input-multiple-values-into-a-dashboard-input/m-p/401946#M116302</link>
      <description>&lt;P&gt;Hi Sukisen,&lt;/P&gt;

&lt;P&gt;The user will not select a value. He/she will input something like  in the Endpoint field on the dashboard. I will try multiselect and see if it helps&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 14:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Input-multiple-values-into-a-dashboard-input/m-p/401946#M116302</guid>
      <dc:creator>jkalra</dc:creator>
      <dc:date>2018-06-26T14:35:54Z</dc:date>
    </item>
  </channel>
</rss>

