<?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: Search based on two different dropdowns in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-based-on-two-different-dropdowns/m-p/580092#M202131</link>
    <description>&lt;P&gt;Reads like what you need is "AND" not "OR". &amp;nbsp;You want to give each dropdown token a default &amp;nbsp;value of "*", then use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*|lookup bar.csv IP OUTPUT BAR BAR_Status |search BAR="$field1$" AND BAR="$field4$"|chart count(IP) by BAR,STATUS&lt;/LI-CODE&gt;&lt;P&gt;This way, the unselected dropdown will always result in a true condition. (You may also want to see if there is a different workflow for the dashboard to avoid two dropdowns for the same field. &amp;nbsp;Additionally, you want to give input tokens descriptive names.)&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 06:58:28 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2022-01-06T06:58:28Z</dc:date>
    <item>
      <title>Search based on two different dropdowns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-based-on-two-different-dropdowns/m-p/580055#M202115</link>
      <description>&lt;P&gt;I have two dropdowns.&amp;nbsp; I only want to run a single dropdown everytime for a search.&lt;/P&gt;&lt;P&gt;Closed Dropdown has token value as field1&lt;/P&gt;&lt;P&gt;OPEN Dropdown has token value as field4&lt;/P&gt;&lt;P&gt;In the dashboard's source, I have listed below query, so that the panel picks up the data as per input provided in dropdowm&lt;BR /&gt;&lt;BR /&gt;index=*|lookup bar.csv IP OUTPUT BAR BAR_Status |search BAR="$field1$" OR BAR="$field4$"|chart count(IP) by BAR,STATUS&lt;/P&gt;&lt;P&gt;So If select closed dropdown the chart should provide the details only related to Closed and vice-versa. Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 22:08:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-based-on-two-different-dropdowns/m-p/580055#M202115</guid>
      <dc:creator>martin61</dc:creator>
      <dc:date>2022-01-05T22:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on two different dropdowns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-based-on-two-different-dropdowns/m-p/580092#M202131</link>
      <description>&lt;P&gt;Reads like what you need is "AND" not "OR". &amp;nbsp;You want to give each dropdown token a default &amp;nbsp;value of "*", then use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*|lookup bar.csv IP OUTPUT BAR BAR_Status |search BAR="$field1$" AND BAR="$field4$"|chart count(IP) by BAR,STATUS&lt;/LI-CODE&gt;&lt;P&gt;This way, the unselected dropdown will always result in a true condition. (You may also want to see if there is a different workflow for the dashboard to avoid two dropdowns for the same field. &amp;nbsp;Additionally, you want to give input tokens descriptive names.)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 06:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-based-on-two-different-dropdowns/m-p/580092#M202131</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-01-06T06:58:28Z</dc:date>
    </item>
  </channel>
</rss>

