<?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: Dashboard inherited inputs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688723#M234786</link>
    <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;Multi-select filtered&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="multiselect" token="alloptions" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select site&amp;lt;/label&amp;gt;
      &amp;lt;choice value="All"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;
| makeresults format=csv data="Country
USA
Romania
Turkey"
| table Country
        &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Country&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Country&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;valuePrefix&amp;gt;"&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="form.alloptions"&amp;gt;case(mvcount('form.alloptions')=0,"All",mvcount('form.alloptions')&amp;amp;gt;1 AND mvfind('form.alloptions',"All")&amp;amp;gt;0,"All",mvcount('form.alloptions')&amp;amp;gt;1 AND mvfind('form.alloptions',"All")=0,mvfilter('form.alloptions'!="All"),1==1,'form.alloptions')&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="countrychoice"&amp;gt;if($form.alloptions$=="All","","| where Country IN (".$alloptions$.")")&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="campus" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Campus&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;
| makeresults format=csv data="Country,Campus
USA,USA1
USA,USA2
Romania,Romania1
Romania,Romania2
Romania,Romania3
Turkey,Turkey1
Turkey,Turkey2
Turkey,Turkey3
Turkey,Turkey4"
$countrychoice$
| table Campus
        &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Campus&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Campus&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;valuePrefix&amp;gt;"&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 26 May 2024 13:30:06 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-05-26T13:30:06Z</dc:date>
    <item>
      <title>Dashboard inherited inputs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688720#M234783</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I'm building new dashboard that contains 2 multiselect values:&lt;/P&gt;&lt;P&gt;Site: USA, Romania, Turkey.... (only countries)&lt;/P&gt;&lt;P&gt;Campus: USA1,USA2,Romania1,Romania2.... (contains the country's name and number).&lt;/P&gt;&lt;P&gt;I want that when I select country/countires in Site multiselect value I will see only options to select the relevant campuses in Campus multiselect value.&lt;/P&gt;&lt;P&gt;How can I create inherited rule that the Campus will inherit from Site value?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 12:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688720#M234783</guid>
      <dc:creator>joock3r</dc:creator>
      <dc:date>2024-05-26T12:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard inherited inputs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688721#M234784</link>
      <description>&lt;P&gt;For the campus dropdown, use a search which filters the campuses based on the token value from the countries dropdown&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 12:48:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688721#M234784</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-26T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard inherited inputs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688722#M234785</link>
      <description>&lt;P&gt;I thought about that but didn't succeed to edit the dynamic options for the Campus value.&lt;BR /&gt;I tried&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; | search $site.token$=$campus.token$*&lt;/LI-CODE&gt;
&lt;P&gt;When $site.token$ is for Site value and&amp;nbsp;$campus.token$* is for Campus value.&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 13:28:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688722#M234785</guid>
      <dc:creator>joock3r</dc:creator>
      <dc:date>2024-05-26T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard inherited inputs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688723#M234786</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;Multi-select filtered&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="multiselect" token="alloptions" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select site&amp;lt;/label&amp;gt;
      &amp;lt;choice value="All"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;
| makeresults format=csv data="Country
USA
Romania
Turkey"
| table Country
        &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Country&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Country&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;valuePrefix&amp;gt;"&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="form.alloptions"&amp;gt;case(mvcount('form.alloptions')=0,"All",mvcount('form.alloptions')&amp;amp;gt;1 AND mvfind('form.alloptions',"All")&amp;amp;gt;0,"All",mvcount('form.alloptions')&amp;amp;gt;1 AND mvfind('form.alloptions',"All")=0,mvfilter('form.alloptions'!="All"),1==1,'form.alloptions')&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="countrychoice"&amp;gt;if($form.alloptions$=="All","","| where Country IN (".$alloptions$.")")&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="campus" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Campus&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;
| makeresults format=csv data="Country,Campus
USA,USA1
USA,USA2
Romania,Romania1
Romania,Romania2
Romania,Romania3
Turkey,Turkey1
Turkey,Turkey2
Turkey,Turkey3
Turkey,Turkey4"
$countrychoice$
| table Campus
        &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Campus&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Campus&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;valuePrefix&amp;gt;"&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 26 May 2024 13:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688723#M234786</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-26T13:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard inherited inputs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688751#M234793</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248051"&gt;@joock3r&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;id depends on the data source:&lt;/P&gt;&lt;P&gt;if you have a lookup containing two columns (country and campus), you can fiter the second dopdown using the choice in the first, somthing like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputookup your_lookup.csv WHERE country=$token1$
| fields campus&lt;/LI-CODE&gt;&lt;P&gt;if instead you have only one list (USA 1, USA 2, Romania 1, Romania 2, Turkey 1, Turkey2), you should extract the country from the list using a regex, e.g. something like this (having only one column called campus, containing always the country and a number):&lt;/P&gt;&lt;P&gt;first dropdown&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputookup your_lookup.csv
| rex field=campus "^(?&amp;lt;country&amp;gt;[^0-9]+)\d+"
| fields country&lt;/LI-CODE&gt;&lt;P&gt;second dropdown:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputookup your_lookup.csv
| rex field=campus "^(?&amp;lt;country&amp;gt;[^0-9]+)\d+"
| search country="$token1$"
| fields campus&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 06:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dashboard-inherited-inputs/m-p/688751#M234793</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-27T06:48:22Z</dc:date>
    </item>
  </channel>
</rss>

