<?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 can I apply a dashboard filter that gets its values from a lookup? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-apply-a-dashboard-filter-that-gets-its-values-from-a/m-p/237816#M43339</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to filter a set dashboard charts with a multiselect token, only that the multiselect values come from a lookup.  Here is where I get the values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="my_index" | lookup Resources.csv Resource_Name OUTPUT Team | stats values(Team) as Team | mvexpand Team
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have two issues:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I cannot add the token I've created to the search since the lookup values aren't available at the beginning to add as a filter.&lt;/LI&gt;
&lt;LI&gt;Once I have multiple values, I don't know how to set the Prefix and Suffix to allow for all values&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;What is the recommended command to filter all data at the end according to multiple fields and field values?&lt;/P&gt;

&lt;P&gt;Thank you and best regards,&lt;/P&gt;

&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2016 13:18:25 GMT</pubDate>
    <dc:creator>andrewtrobec</dc:creator>
    <dc:date>2016-11-24T13:18:25Z</dc:date>
    <item>
      <title>How can I apply a dashboard filter that gets its values from a lookup?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-apply-a-dashboard-filter-that-gets-its-values-from-a/m-p/237816#M43339</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to filter a set dashboard charts with a multiselect token, only that the multiselect values come from a lookup.  Here is where I get the values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="my_index" | lookup Resources.csv Resource_Name OUTPUT Team | stats values(Team) as Team | mvexpand Team
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have two issues:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I cannot add the token I've created to the search since the lookup values aren't available at the beginning to add as a filter.&lt;/LI&gt;
&lt;LI&gt;Once I have multiple values, I don't know how to set the Prefix and Suffix to allow for all values&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;What is the recommended command to filter all data at the end according to multiple fields and field values?&lt;/P&gt;

&lt;P&gt;Thank you and best regards,&lt;/P&gt;

&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 13:18:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-apply-a-dashboard-filter-that-gets-its-values-from-a/m-p/237816#M43339</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2016-11-24T13:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I apply a dashboard filter that gets its values from a lookup?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-apply-a-dashboard-filter-that-gets-its-values-from-a/m-p/237817#M43340</link>
      <description>&lt;P&gt;Hi andrewtrobec,&lt;/P&gt;

&lt;P&gt;if I correctly understood: you have to create a multivalue input from a lookup and then use it to filter a search?&lt;/P&gt;

&lt;P&gt;if this is your need you have to:&lt;/P&gt;

&lt;P&gt;create a multivalue input (called e.g. myToken) from the lookup using something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup Resources.csv | dedup Team, | sort Team | table Team
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;putting in:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Prefix          &lt;CODE&gt;Team="&lt;/CODE&gt; &lt;/LI&gt;
&lt;LI&gt;Suffix          &lt;CODE&gt;"&lt;/CODE&gt; &lt;/LI&gt;
&lt;LI&gt;Delimiters  &lt;CODE&gt;" OR Team="&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;After you can insert in your search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="my_index" | lookup Resources.csv Resource_Name OUTPUT Team | search $myToken$ | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 08:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-apply-a-dashboard-filter-that-gets-its-values-from-a/m-p/237817#M43340</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-25T08:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I apply a dashboard filter that gets its values from a lookup?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-apply-a-dashboard-filter-that-gets-its-values-from-a/m-p/237818#M43341</link>
      <description>&lt;P&gt;Exactly what I was looking for!  Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 16:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-apply-a-dashboard-filter-that-gets-its-values-from-a/m-p/237818#M43341</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2016-11-25T16:58:56Z</dc:date>
    </item>
  </channel>
</rss>

