<?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 multiple lookup filters in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-multiple-lookup-filters/m-p/466913#M30642</link>
    <description>&lt;P&gt;Hi @mwdbhyat,&lt;BR /&gt;
youhave to create three inputs in cascade, in other words: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;the first input (car manufactures) is indipendent,&lt;/LI&gt;
&lt;LI&gt;the second one (type) depends on first input,&lt;/LI&gt;
&lt;LI&gt;the third one depends on both the others.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;then in the panels search you put all the three inputs.&lt;BR /&gt;
Probably for first and third inputs you can use a dropdown list, instead for the second you have to use a multichoice, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="input1"&amp;gt;
      &amp;lt;label&amp;gt;Input1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&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;search&amp;gt;
        &amp;lt;query&amp;gt;index=_internal | dedup sourcetype | sort sourcetype | table sourcetype&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;sourcetype="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="input2"&amp;gt;
      &amp;lt;label&amp;gt;Input2&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&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 $input1$ | dedup component | sort component | table 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;/input&amp;gt;
    &amp;lt;input type="dropdown" token="input3"&amp;gt;
      &amp;lt;label&amp;gt;Input1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;field3&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;field3&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=_internal $input1$ $input2$| dedup field3 | sort field3 | table field3&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;field3="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="Time"&amp;gt;
      &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-1d@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;@d&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then in the panel's searches use the three tokens.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2020 11:06:07 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-02-14T11:06:07Z</dc:date>
    <item>
      <title>Dashboard multiple lookup filters</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-multiple-lookup-filters/m-p/466912#M30641</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I am trying to create a dashboard with some filters..&lt;/P&gt;

&lt;P&gt;Roughly:&lt;BR /&gt;
3 boxes populated and filtered by a lookup or kvstore lookup&lt;/P&gt;

&lt;P&gt;cat (car manufacturer) - for instance could be car manufacturer ( lets say i chose mercedes)&lt;BR /&gt;
subcat (type)  - petrol/diesel/electric (i choose a petrol filter)&lt;BR /&gt;
result (cars listed assoicated with above filters) - (it lists car models from merc that are petrol)&lt;/P&gt;

&lt;P&gt;but then maybe i wanna go back and have 2 types of filters so i would then go back to "subcat" and choose both "petrol and electric"&lt;BR /&gt;
the result would then list both types filtered into to "result"&lt;/P&gt;

&lt;P&gt;how can i accomplish this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 10:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-multiple-lookup-filters/m-p/466912#M30641</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2020-02-14T10:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard multiple lookup filters</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-multiple-lookup-filters/m-p/466913#M30642</link>
      <description>&lt;P&gt;Hi @mwdbhyat,&lt;BR /&gt;
youhave to create three inputs in cascade, in other words: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;the first input (car manufactures) is indipendent,&lt;/LI&gt;
&lt;LI&gt;the second one (type) depends on first input,&lt;/LI&gt;
&lt;LI&gt;the third one depends on both the others.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;then in the panels search you put all the three inputs.&lt;BR /&gt;
Probably for first and third inputs you can use a dropdown list, instead for the second you have to use a multichoice, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="input1"&amp;gt;
      &amp;lt;label&amp;gt;Input1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&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;search&amp;gt;
        &amp;lt;query&amp;gt;index=_internal | dedup sourcetype | sort sourcetype | table sourcetype&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;sourcetype="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="input2"&amp;gt;
      &amp;lt;label&amp;gt;Input2&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&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 $input1$ | dedup component | sort component | table 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;/input&amp;gt;
    &amp;lt;input type="dropdown" token="input3"&amp;gt;
      &amp;lt;label&amp;gt;Input1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;field3&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;field3&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=_internal $input1$ $input2$| dedup field3 | sort field3 | table field3&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;field3="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="Time"&amp;gt;
      &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-1d@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;@d&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then in the panel's searches use the three tokens.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 11:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-multiple-lookup-filters/m-p/466913#M30642</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-14T11:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard multiple lookup filters</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-multiple-lookup-filters/m-p/466914#M30643</link>
      <description>&lt;P&gt;Thanks that works&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 12:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-multiple-lookup-filters/m-p/466914#M30643</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2020-02-14T12:14:51Z</dc:date>
    </item>
  </channel>
</rss>

