<?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 How to pass a multiselect input from one dashboard via drilldown to another? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495574#M32457</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have two dashboards, both with some input fields, with one of them being common between both; a multiselect input field.&lt;/P&gt;

&lt;P&gt;This multiselect input field has a token prefix and a suffix with the delimiter OR. &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;label&amp;gt;Application&amp;lt;/label&amp;gt;
  &amp;lt;choice value="app1"&amp;gt;A&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="app2"&amp;gt;B&amp;lt;/choice&amp;gt;
  &amp;lt;valuePrefix&amp;gt;index=phase-&amp;lt;/valuePrefix&amp;gt;
  &amp;lt;valueSuffix&amp;gt;-app&amp;lt;/valueSuffix&amp;gt;
  &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;and in the search query, I have&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;| tstats count as Total WHERE ($app$)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So in the original dashboard, the search is fine.&lt;BR /&gt;
However, in drilldown, I have Link to another dashboard&lt;BR /&gt;
form.app=$app$&lt;BR /&gt;
and this causes problems as it passes "index=phase-A-app OR index=phase-B-app" in form.app and in the target dashboard, due to the same token suffix and prefix , the token changes to "index=phase-index=phase-A-app OR index=phase-B-app-app" which is wrong.&lt;/P&gt;

&lt;P&gt;So, my question is, how do I deal with this to be able to send form.app=A form.app=B to the destination dashboard?&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Regards,&lt;BR /&gt;
aahiri&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2020 10:27:23 GMT</pubDate>
    <dc:creator>aahiri</dc:creator>
    <dc:date>2020-01-24T10:27:23Z</dc:date>
    <item>
      <title>How to pass a multiselect input from one dashboard via drilldown to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495574#M32457</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have two dashboards, both with some input fields, with one of them being common between both; a multiselect input field.&lt;/P&gt;

&lt;P&gt;This multiselect input field has a token prefix and a suffix with the delimiter OR. &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;label&amp;gt;Application&amp;lt;/label&amp;gt;
  &amp;lt;choice value="app1"&amp;gt;A&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="app2"&amp;gt;B&amp;lt;/choice&amp;gt;
  &amp;lt;valuePrefix&amp;gt;index=phase-&amp;lt;/valuePrefix&amp;gt;
  &amp;lt;valueSuffix&amp;gt;-app&amp;lt;/valueSuffix&amp;gt;
  &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;and in the search query, I have&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;| tstats count as Total WHERE ($app$)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So in the original dashboard, the search is fine.&lt;BR /&gt;
However, in drilldown, I have Link to another dashboard&lt;BR /&gt;
form.app=$app$&lt;BR /&gt;
and this causes problems as it passes "index=phase-A-app OR index=phase-B-app" in form.app and in the target dashboard, due to the same token suffix and prefix , the token changes to "index=phase-index=phase-A-app OR index=phase-B-app-app" which is wrong.&lt;/P&gt;

&lt;P&gt;So, my question is, how do I deal with this to be able to send form.app=A form.app=B to the destination dashboard?&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Regards,&lt;BR /&gt;
aahiri&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 10:27:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495574#M32457</guid>
      <dc:creator>aahiri</dc:creator>
      <dc:date>2020-01-24T10:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a multiselect input from one dashboard via drilldown to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495575#M32458</link>
      <description>&lt;P&gt;what if you pass the form token instead? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;form.app=$form.app$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Jan 2020 14:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495575#M32458</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2020-01-25T14:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a multiselect input from one dashboard via drilldown to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495576#M32459</link>
      <description>&lt;P&gt;thank you! I tried this, and now I have &lt;BR /&gt;
form.app=A,B&lt;/P&gt;

&lt;P&gt;is there a way to manipulate this on the destination dashboard to make it two distinct values?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:00:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495576#M32459</guid>
      <dc:creator>aahiri</dc:creator>
      <dc:date>2020-01-28T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a multiselect input from one dashboard via drilldown to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495577#M32460</link>
      <description>&lt;P&gt;hi @aahiri &lt;BR /&gt;
Did you find any solution for this? I have the same issue..&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495577#M32460</guid>
      <dc:creator>cpsplunkappsupp</dc:creator>
      <dc:date>2020-01-28T13:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a multiselect input from one dashboard via drilldown to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495578#M32461</link>
      <description>&lt;P&gt;is it set up as an input on the destination too?  If so, just give that input the same processing rules (prefix, suffix, delim, whatever) as in the source dashboard?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495578#M32461</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2020-01-28T13:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a multiselect input from one dashboard via drilldown to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495579#M32462</link>
      <description>&lt;P&gt;It has the same values.&lt;BR /&gt;
The issue is that when drilling down, the URL contains "form.indices=(history%2Csummary)" instead of "form.indices=history&amp;amp;form.indices=summary"&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 14:03:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495579#M32462</guid>
      <dc:creator>cpsplunkappsupp</dc:creator>
      <dc:date>2020-01-28T14:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a multiselect input from one dashboard via drilldown to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495580#M32463</link>
      <description>&lt;P&gt;hmm...ok.  i'm at work currently but can maybe try to work on an example later tonight, if i can get it working&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 14:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495580#M32463</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2020-01-28T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a multiselect input from one dashboard via drilldown to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495581#M32464</link>
      <description>&lt;P&gt;Here's a sample dashboard....the change on the input formats the token the way you need it...then you use it in the drilldown.  In this case, the token on the destination dashboards is "t_comp".&lt;/P&gt;

&lt;P&gt;Let me know if something like this works for you.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Eric_Test_10&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="multiselect" token="t_component"&amp;gt;
      &amp;lt;label&amp;gt;choose components&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;component&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;component&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd | stats count by component&amp;lt;/query&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;/search&amp;gt;
      &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;component="&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;change&amp;gt;
         &amp;lt;eval token="t_drilldown_tokens"&amp;gt;"form.t_comp=" . replace(mvjoin($form.t_component$,","),",","&amp;amp;amp;form.t_comp=")&amp;lt;/eval&amp;gt;
      &amp;lt;/change&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;$t_drilldown_tokens$&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;$form.t_component$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal $t_component$
| stats count by component&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;row&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;eric_test_20?$t_drilldown_tokens|n$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&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>Wed, 29 Jan 2020 13:07:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495581#M32464</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2020-01-29T13:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a multiselect input from one dashboard via drilldown to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495582#M32465</link>
      <description>&lt;P&gt;Thanks for this! For sure it's a step in the right direction.&lt;BR /&gt;
However, for some reason it doesn't seem to work all the time. &lt;BR /&gt;
Sometimes even when both options are selected, only one of the options (random option) is passed in the $t_drilldown_tokens|n$&lt;/P&gt;

&lt;P&gt;edit: i figured out why. it's because I have a submit button &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:57:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-a-multiselect-input-from-one-dashboard-via-drilldown/m-p/495582#M32465</guid>
      <dc:creator>aahiri</dc:creator>
      <dc:date>2020-09-30T03:57:15Z</dc:date>
    </item>
  </channel>
</rss>

