<?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 query on page load and after selecting particular host? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-query-on-page-load-and-after-selecting-particular-host/m-p/23705#M4255</link>
    <description>&lt;P&gt;I think you can use search selector module in advanced view.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.2.1/Developer/HowToUseListers"&gt;http://www.splunk.com/base/Documentation/4.2.1/Developer/HowToUseListers&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, you can define multiple host in static select. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/LookupsAndViews"&gt;http://www.splunk.com/base/Documentation/latest/Developer/LookupsAndViews&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I recommend App 'UI example" and ' 'side view'. These contains good example views. Please refer to them.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2011 00:56:41 GMT</pubDate>
    <dc:creator>Takajian</dc:creator>
    <dc:date>2011-06-08T00:56:41Z</dc:date>
    <item>
      <title>Search query on page load and after selecting particular host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-query-on-page-load-and-after-selecting-particular-host/m-p/23704#M4254</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have following query. $HostSelectBoxValue$ is drop down  field name. I have to run this query on page load and also after selecting particular host. The default host is 'any' and value is '*'.&lt;/P&gt;

&lt;P&gt;I want to show all hosts on page load and after selecting particular host, graph should show particular host's data graph.&lt;BR /&gt;
Query is giving some problem.&lt;/P&gt;

&lt;P&gt;index="power" sourcetype="power_usage" | eval host=if(HostSelectBoxValue=='$HostSelectBoxValue$','$HostSelectBoxValue$','*') | timechart max(Power_consumption) by host | sort 10 host&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-query-on-page-load-and-after-selecting-particular-host/m-p/23704#M4254</guid>
      <dc:creator>geetanjali</dc:creator>
      <dc:date>2020-09-28T09:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search query on page load and after selecting particular host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-query-on-page-load-and-after-selecting-particular-host/m-p/23705#M4255</link>
      <description>&lt;P&gt;I think you can use search selector module in advanced view.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.2.1/Developer/HowToUseListers"&gt;http://www.splunk.com/base/Documentation/4.2.1/Developer/HowToUseListers&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, you can define multiple host in static select. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/LookupsAndViews"&gt;http://www.splunk.com/base/Documentation/latest/Developer/LookupsAndViews&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I recommend App 'UI example" and ' 'side view'. These contains good example views. Please refer to them.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2011 00:56:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-query-on-page-load-and-after-selecting-particular-host/m-p/23705#M4255</guid>
      <dc:creator>Takajian</dc:creator>
      <dc:date>2011-06-08T00:56:41Z</dc:date>
    </item>
  </channel>
</rss>

