<?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: Select all values from downdown list in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280729#M190529</link>
    <description>&lt;P&gt;Got the problem now. You're using &lt;CODE&gt;"|where"&lt;/CODE&gt; clause for filter based on Domain. The wildcard for it is &lt;CODE&gt;"%"&lt;/CODE&gt; not &lt;CODE&gt;"*"&lt;/CODE&gt;. So you got two option to solve your problem.&lt;/P&gt;

&lt;P&gt;1) In dropdown, change the value for "All" option to &lt;CODE&gt;%&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;replace   &lt;CODE&gt;All&lt;/CODE&gt;   with  &lt;CODE&gt;All&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;2) In your query, replace &lt;CODE&gt;where&lt;/CODE&gt; with &lt;CODE&gt;search&lt;/CODE&gt; which accepts &lt;CODE&gt;*&lt;/CODE&gt; as wildcard.&lt;/P&gt;

&lt;P&gt;replace  &lt;CODE&gt;| where Ministry ="$Ministry$"&lt;/CODE&gt; with  &lt;CODE&gt;| searchMinistry ="$Ministry$"&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Feb 2016 02:32:55 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-02-13T02:32:55Z</dc:date>
    <item>
      <title>Select all values from downdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280722#M190522</link>
      <description>&lt;P&gt;I have populated  drop down input list in my dashboard and I am able to select all my options but everything I have tried using "*" as the wild card doesn't  appear to work. Any help on how I can get an All value to select everything in the drop down and have the panels on my dashboard select all the values. &lt;/P&gt;

&lt;P&gt;Like I said I was able to get it to work when I just select a single value. &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 20:25:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280722#M190522</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2016-02-12T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select all values from downdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280723#M190523</link>
      <description>&lt;P&gt;Try adding:&lt;/P&gt;

&lt;P&gt;count: '-1'&lt;/P&gt;

&lt;P&gt;to your code, so it will display all the results. &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 20:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280723#M190523</guid>
      <dc:creator>dgrubb_splunk</dc:creator>
      <dc:date>2016-02-12T20:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select all values from downdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280724#M190524</link>
      <description>&lt;P&gt;Sorry I am not sure where I would put that? &lt;BR /&gt;
Here is my code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;index="lnf_snow_table_alm_hardware"  | dedup dv_company  | rename dv_company AS Domain | `eval_ministries(Domain)` | table Ministry | dedup Ministry |  sort by Ministry&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-30d@d&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Everything I seen online says to use quotes and * but I can't get it to work. &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 21:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280724#M190524</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2016-02-12T21:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select all values from downdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280725#M190525</link>
      <description>&lt;P&gt;Not sure I understand the question fully here. So you don't get result in your dashboard panels if you select dropdown value as "All" ?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 21:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280725#M190525</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-12T21:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select all values from downdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280726#M190526</link>
      <description>&lt;P&gt;that is correct, basically I can select a specific domain and it will query fine but if I want to select all to query all domains it doesn't do anything. Below is the code that is used for the drop down box. &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 21:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280726#M190526</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2016-02-12T21:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select all values from downdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280727#M190527</link>
      <description>&lt;P&gt;I don't see a problem with the dropdown. Could you post the panel query that is not returning results when your dropdown token is &lt;CODE&gt;"*"&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 21:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280727#M190527</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-12T21:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select all values from downdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280728#M190528</link>
      <description>&lt;P&gt;| dbquery mcafee "SELECT DISTINCT UPPER(EPOLeafNode.NodeName) AS Name, EPOLeafNode.LastUpdate AS mcafee_scantime,EPOComputerProperties.DomainName as Domain, EPOLeafNode.AgentVersion, EPOProdPropsView_VIRUSCAN.productversion AS VSEVersion, EPOProdPropsView_VIRUSCAN.enginever, EPOComputerProperties.OSType AS OS, EPOProdPropsView_VIRUSCAN.datver, RTRIM(EPOComputerProperties.userproperty1) AS McAfeeAssetTag, UPPER(EPOComputerProperties.userproperty3) as SerialNumber FROM EPOLeafNode LEFT JOIN EPOProdPropsView_SOLIDCORE ON EPOLeafNode.AutoID = EPOProdPropsView_SOLIDCORE.LeafNodeID LEFT JOIN EPOProdPropsView_EPOAGENT ON EPOLeafNode.AutoID = EPOProdPropsView_EPOAGENT.LeafNodeID LEFT JOIN EPOProdPropsView_VIRUSCAN ON EPOLeafNode.AutoID = EPOProdPropsView_VIRUSCAN.LeafNodeID LEFT JOIN EPOComputerProperties ON EPOLeafNode.AutoID = EPOComputerProperties.ParentID where EPOLeafNode.LastUpdate &amp;gt; DATEADD(MONTH, -1, GETDATE())"  | table Name SerialNumber McAfeeAssetTag mcafee_scantime Domain OS AgentVersion VSEVersion enginever datver   | eval mcafee_scantime = strftime(mcafee_scantime, "%F") | eval Datasource="Mcafee" | dedup Name | &lt;CODE&gt;eval_ministries(Domain)&lt;/CODE&gt; | where Ministry ="$Ministry$"  | stats count by AgentVersion&lt;/P&gt;

&lt;P&gt;Like I said it works if I select the actual ministry just fine. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:44:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280728#M190528</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2020-09-29T08:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select all values from downdown list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280729#M190529</link>
      <description>&lt;P&gt;Got the problem now. You're using &lt;CODE&gt;"|where"&lt;/CODE&gt; clause for filter based on Domain. The wildcard for it is &lt;CODE&gt;"%"&lt;/CODE&gt; not &lt;CODE&gt;"*"&lt;/CODE&gt;. So you got two option to solve your problem.&lt;/P&gt;

&lt;P&gt;1) In dropdown, change the value for "All" option to &lt;CODE&gt;%&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;replace   &lt;CODE&gt;All&lt;/CODE&gt;   with  &lt;CODE&gt;All&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;2) In your query, replace &lt;CODE&gt;where&lt;/CODE&gt; with &lt;CODE&gt;search&lt;/CODE&gt; which accepts &lt;CODE&gt;*&lt;/CODE&gt; as wildcard.&lt;/P&gt;

&lt;P&gt;replace  &lt;CODE&gt;| where Ministry ="$Ministry$"&lt;/CODE&gt; with  &lt;CODE&gt;| searchMinistry ="$Ministry$"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 02:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-all-values-from-downdown-list/m-p/280729#M190529</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-13T02:32:55Z</dc:date>
    </item>
  </channel>
</rss>

