<?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: Pass tokens from multiselect dropdown to charts in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574330#M101536</link>
    <description>&lt;P&gt;Thanks for replying.. I tried the same and it works only for one input. When i select multiple inputs from the multiselect dropdown the chart shows no results found. Not sure how to solve this.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 07:27:11 GMT</pubDate>
    <dc:creator>anooshac</dc:creator>
    <dc:date>2021-11-10T07:27:11Z</dc:date>
    <item>
      <title>Pass tokens from multiselect dropdown to charts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574324#M101534</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a multiselect dropdown to list all the&amp;nbsp; groups, also i have 2 pie charts for the number of tasks per groups and status of the jobs of tasks.Default selection in the multiselect dropdown is "All". How to pass the tokens from the mutiselect to the charts?&lt;/P&gt;&lt;P&gt;The queries for 2 charts are,&lt;/P&gt;&lt;P&gt;index= "abc" sourcetype="xyz"|chart distinct_count(task) as Tasks by group&lt;/P&gt;&lt;P&gt;The status pie chart is drilldown from the first pie chart. Tok_task is passe as token.&lt;/P&gt;&lt;P&gt;index= "abc" sourcetype="xyz"| search task= $Tok_task$| chart distinct_count(job) as Jobs by status&lt;/P&gt;&lt;P&gt;I just simply passed a token from multiselect to the chart. It is not working as i select multiple options. Does anyone know how to work with this?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 04:34:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574324#M101534</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-11-11T04:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tokens from multiselect dropdown to charts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574326#M101535</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30057"&gt;@anooshac&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you refer to below code for the solution:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time_token"&amp;gt;
      &amp;lt;label&amp;gt;Time range&amp;lt;/label&amp;gt;
      &amp;lt;default&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;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="source_token" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Sourcetype&amp;lt;/label&amp;gt;
      &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;sourcetype&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;sourcetype&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index="_internal" | stats count by sourcetype &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;valuePrefix&amp;gt;sourcetype=&amp;lt;/valuePrefix&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Associated Source&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" $source_token$ | stats Count by source | rename source as Source&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you find my solution fruitful, an upvote would be appreciated.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 07:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574326#M101535</guid>
      <dc:creator>jhanvidattani</dc:creator>
      <dc:date>2021-11-10T07:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tokens from multiselect dropdown to charts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574330#M101536</link>
      <description>&lt;P&gt;Thanks for replying.. I tried the same and it works only for one input. When i select multiple inputs from the multiselect dropdown the chart shows no results found. Not sure how to solve this.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 07:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574330#M101536</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-11-10T07:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tokens from multiselect dropdown to charts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574332#M101537</link>
      <description>&lt;P&gt;Can you execute the SPL of the panel so it could be more clear what value is being passed in token or share the XML code over here so we can look into it.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 07:30:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574332#M101537</guid>
      <dc:creator>jhanvidattani</dc:creator>
      <dc:date>2021-11-10T07:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tokens from multiselect dropdown to charts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574357#M101540</link>
      <description>&lt;P&gt;I can't post the actual queries here.. I have changed the parameters. this query below constructs the values for mutliselect dropown.&lt;/P&gt;&lt;P&gt;index= "abc" sourcetype="xyz"|dedup group|table group&lt;/P&gt;&lt;P&gt;The pie chart is constructed using this query.&lt;/P&gt;&lt;P&gt;index= "abc" sourcetype="xyz"|chart distinct_count(task) as Tasks by group&lt;/P&gt;&lt;P&gt;The second pie chart is drilldown from the first pie chart. It is created using this query,"Tok_task" is passed as token from the above pie chart.&lt;/P&gt;&lt;P&gt;index= "abc" sourcetype="xyz"| search task= $Tok_task$| chart distinct_count(job) as Jobs by status&lt;/P&gt;&lt;P&gt;I want to pass tokens from the multiselect dropdown, so that the values selected will be reflected in the pie charts. I used token from the multiselect dropdown directly in the queries but it is not working as i select more values. Still confused on how to proceed with..&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 09:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574357#M101540</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-11-10T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pass tokens from multiselect dropdown to charts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574581#M101566</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I got the solution for this. Added the multiselect token like this in the query.&lt;/P&gt;&lt;P&gt;index= "abc" sourcetype="xyz"|search group IN ($Tok_group$)|chart distinct_count(task) as Tasks by group&lt;/P&gt;&lt;P&gt;index= "abc" sourcetype="xyz"|search group IN ($Tok_group$)| search task= $Tok_task$| chart distinct_count(job) as Jobs by status&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 14:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pass-tokens-from-multiselect-dropdown-to-charts/m-p/574581#M101566</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-11-11T14:01:54Z</dc:date>
    </item>
  </channel>
</rss>

