<?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: based on drop down list value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/based-on-drop-down-list-value/m-p/686830#M234251</link>
    <description>&lt;P&gt;I don't quite follow you. but it seems like you only need a single drop down&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=$index$ (source="/log/test.log"  $host$ )
  | rex field=name "(?&amp;lt;DB&amp;gt;[^\.]*)"
  | stats count by DB&lt;/LI-CODE&gt;&lt;P&gt;What is selecting your index and host fields&lt;/P&gt;&lt;P&gt;Can you share more of your dashboard XML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the above doesn't do the rename or table, as they are not necessary - just use DB as the fields for label/value rather than Database.&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 03:58:59 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2024-05-08T03:58:59Z</dc:date>
    <item>
      <title>based on drop down list value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/based-on-drop-down-list-value/m-p/686791#M234232</link>
      <description>&lt;P&gt;the below are two different drop down list as we have different host and index.&lt;BR /&gt;Based on the index selection i do set/unset -show/hide - can we make as single query with single drop down list&amp;nbsp; based on the value of the dropdownlist which is visible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1)  index=aaa (source="/log/test.log"  $host1$ )
          | rex field=name "(?&amp;lt;DB&amp;gt;[^\.]*)"
          | rename DB AS "Database"
		 | table  Database | dedup Database

2) index=bbb (source="/log/test.log"  $host2$ )
          | rex field=name "(?&amp;lt;DB&amp;gt;[^\.]*)"
          | rename DB AS "Database"
		 | table  Database | dedup Database&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if ddl1 is visible fetch the value and pass to $host1$ to the&amp;nbsp; query&lt;/P&gt;&lt;P&gt;if ddl2 is visible fetch the value and pass $host2$ to the query&lt;/P&gt;&lt;P&gt;or based on the drop down list value selected can we set value and pass to query to avoid multiple queries for only differnt host/index?&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 18:56:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/based-on-drop-down-list-value/m-p/686791#M234232</guid>
      <dc:creator>Jasmine</dc:creator>
      <dc:date>2024-05-07T18:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: based on drop down list value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/based-on-drop-down-list-value/m-p/686830#M234251</link>
      <description>&lt;P&gt;I don't quite follow you. but it seems like you only need a single drop down&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=$index$ (source="/log/test.log"  $host$ )
  | rex field=name "(?&amp;lt;DB&amp;gt;[^\.]*)"
  | stats count by DB&lt;/LI-CODE&gt;&lt;P&gt;What is selecting your index and host fields&lt;/P&gt;&lt;P&gt;Can you share more of your dashboard XML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the above doesn't do the rename or table, as they are not necessary - just use DB as the fields for label/value rather than Database.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 03:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/based-on-drop-down-list-value/m-p/686830#M234251</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-05-08T03:58:59Z</dc:date>
    </item>
  </channel>
</rss>

