<?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 Passing a diffrent base search based on the selection of input dropdown in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Passing-a-diffrent-base-search-based-on-the-selection-of-input/m-p/702988#M238312</link>
    <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I would like to pass the two base search when input dropdown is set as all, i need to pass a base search, when other values apart from all is selected, it need to pass a diffrent base search.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 10:29:08 GMT</pubDate>
    <dc:creator>smanojkumar</dc:creator>
    <dc:date>2024-10-29T10:29:08Z</dc:date>
    <item>
      <title>Passing a diffrent base search based on the selection of input dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-a-diffrent-base-search-based-on-the-selection-of-input/m-p/702988#M238312</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I would like to pass the two base search when input dropdown is set as all, i need to pass a base search, when other values apart from all is selected, it need to pass a diffrent base search.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 10:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-a-diffrent-base-search-based-on-the-selection-of-input/m-p/702988#M238312</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2024-10-29T10:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a diffrent base search based on the selection of input dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-a-diffrent-base-search-based-on-the-selection-of-input/m-p/703018#M238325</link>
      <description>&lt;P&gt;What do you mean by "pass the two base search"? Pass them where? How are you trying to use base searches? Please provide more specific examples of what you are trying to do, as your current question is too ill-defined to be able to provide a meaningful answer&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 14:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-a-diffrent-base-search-based-on-the-selection-of-input/m-p/703018#M238325</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-29T14:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a diffrent base search based on the selection of input dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-a-diffrent-base-search-based-on-the-selection-of-input/m-p/703028#M238327</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I would like to pass based search to panels in dashboard&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;search id="base_search_1"&amp;gt;
&amp;lt;query&amp;gt;
index=$siteid$ sourcetype=log*  values IN (Ax01, Ms09)
.....
| table *
&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;search id="base_search_2"&amp;gt;
&amp;lt;query&amp;gt;
index=$siteid$ sourcetype=log* Values IN (*)
.....
| table *
&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I need to pass base_search_1 when a inut drodpown is selected with "All", when other values are selected in the input dropdown, it need to pass base_search_2 to the panel in dashboard.&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;&amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&lt;BR /&gt;the reason why i choose this is, Actually we are having a input dropdown field which may be empty at some time also we are filtering only head 10000 records as per need, So when the input dropdown field is selected with "All" values, we don't have any issues either the field can be with values or can be empty but when the inputdropdown field is having spome field values to be filtered then empty field should not be giving proper results, so instead of head 10000, we need to filter non empty values of 10k, rather than head 10k, also please suggest other possible efiicient way to do this.&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 03:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-a-diffrent-base-search-based-on-the-selection-of-input/m-p/703028#M238327</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2024-10-30T03:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a diffrent base search based on the selection of input dropdown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-a-diffrent-base-search-based-on-the-selection-of-input/m-p/703057#M238335</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hope i have added more information, please let me know if i need to add any other info.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Actual need is, I'm having a field where sometimes i will get empty value, When i'm selecting All in input drodown the values can be anything, it can be empty as well but when we choose any specific value in input drodown, we don't need to consider empty values, so I planned to create 2 base searches, one is when we choose all in input drodown, other is when we choose any values apart from All in input drodown, Since when we are choosing any other values in input drodown,&amp;nbsp; we can use&lt;BR /&gt;&lt;BR /&gt;| where isnotnull(field_name)&lt;BR /&gt;| head 10000&lt;BR /&gt;&lt;BR /&gt;which is not needed when we are selecting all in inputdrodown, since the data volume is huge .&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 04:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-a-diffrent-base-search-based-on-the-selection-of-input/m-p/703057#M238335</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2024-10-30T04:02:38Z</dc:date>
    </item>
  </channel>
</rss>

