<?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: Can you change the base search depending on a drop down value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-change-the-base-search-depending-on-a-drop-down-value/m-p/620098#M215547</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;- Perfect.&amp;nbsp; Karma given.&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 12:42:39 GMT</pubDate>
    <dc:creator>replicant</dc:creator>
    <dc:date>2022-11-08T12:42:39Z</dc:date>
    <item>
      <title>Can you change the base search depending on a drop down value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-change-the-base-search-depending-on-a-drop-down-value/m-p/619896#M215459</link>
      <description>&lt;P&gt;I have a dashboard that uses a dbxquery in the base search.&amp;nbsp; I would like to make the dashboard "bilingual".&lt;/P&gt;&lt;P&gt;Is it possible to alter the behavior of the dashboard and select a different base search depending on the value of a drop down or radio button?&lt;/P&gt;&lt;P&gt;For example, selecting the first of the two options should have this base search be used:&lt;/P&gt;&lt;P&gt;&amp;lt;search id="base1"&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| dbxquery shortnames=true output=csv connection="&lt;STRONG&gt;CON_1&lt;/STRONG&gt;"&amp;nbsp;query="use [&lt;STRONG&gt;DB1&lt;/STRONG&gt;] select TimeRaised as 'TimeTriggered', ...&amp;lt;/query&amp;gt;&lt;/P&gt;&lt;P&gt;...while selecting the 2nd of the two options would use this one:&lt;/P&gt;&lt;P&gt;&amp;lt;search id="base1"&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| dbxquery shortnames=true output=csv connection="&lt;STRONG&gt;CON_2&lt;/STRONG&gt;"&amp;nbsp;query="use [&lt;STRONG&gt;DB2&lt;/STRONG&gt;] select TimeRaised as 'TimeTriggered', ...&amp;lt;/query&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-change-the-base-search-depending-on-a-drop-down-value/m-p/619896#M215459</guid>
      <dc:creator>replicant</dc:creator>
      <dc:date>2022-11-07T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can you change the base search depending on a drop down value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-change-the-base-search-depending-on-a-drop-down-value/m-p/619905#M215462</link>
      <description>&lt;P&gt;Rather than change the base search, consider changing parameters of the search.&amp;nbsp; If this is the base search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;query&amp;gt;| dbxquery shortnames=true output=csv connection=$CON|S$ query="use [$DB$] select TimeRaised as 'TimeTriggered', ...&amp;lt;/query&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;then you just need the dropdown selector to set the $CON$ and $DB$ tokens to the appropriate values.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;input type="dropdown" ...&amp;gt;
  ...
  &amp;lt;change&amp;gt;
    &amp;lt;condition label="Choice 1"&amp;gt;
      &amp;lt;set token="CON"&amp;gt;CON1&amp;lt;/set&amp;gt;
      &amp;lt;set token="DB"&amp;gt;DB1&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition label="Choice 2"&amp;gt;
      &amp;lt;set token="CON"&amp;gt;CON2&amp;lt;/set&amp;gt;
      &amp;lt;set token="DB"&amp;gt;DB2&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
  &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 07 Nov 2022 15:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-change-the-base-search-depending-on-a-drop-down-value/m-p/619905#M215462</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-07T15:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can you change the base search depending on a drop down value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-change-the-base-search-depending-on-a-drop-down-value/m-p/620098#M215547</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;- Perfect.&amp;nbsp; Karma given.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 12:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-change-the-base-search-depending-on-a-drop-down-value/m-p/620098#M215547</guid>
      <dc:creator>replicant</dc:creator>
      <dc:date>2022-11-08T12:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can you change the base search depending on a drop down value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-change-the-base-search-depending-on-a-drop-down-value/m-p/620107#M215553</link>
      <description>&lt;P&gt;If your problem is resolved, then please click the "Accept as Solution" button to help future readers.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 13:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-change-the-base-search-depending-on-a-drop-down-value/m-p/620107#M215553</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-08T13:21:25Z</dc:date>
    </item>
  </channel>
</rss>

