<?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 Blocking searches using splunkJS-stack? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Blocking-searches-using-splunkJS-stack/m-p/153169#M42975</link>
    <description>&lt;P&gt;I have multiple searches, and I need their results in a particular order.&lt;BR /&gt;&lt;BR /&gt;
I am trying to make a splunk view that shows results from multiple searches.  &lt;/P&gt;

&lt;P&gt;I am under the impression that to make it a splunk view, it must be created using splunk web-framework and has django bindings and whatnot. And because of that, it cannot have blocking searches.  &lt;/P&gt;

&lt;P&gt;I need to be able to retrieve search results in a particular order, so I am going to need blocking searches.  &lt;/P&gt;

&lt;P&gt;My question is, can I have blocking searches in a splunk-django application?  &lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2014 15:54:20 GMT</pubDate>
    <dc:creator>ahmetcepoglu</dc:creator>
    <dc:date>2014-02-17T15:54:20Z</dc:date>
    <item>
      <title>Blocking searches using splunkJS-stack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Blocking-searches-using-splunkJS-stack/m-p/153169#M42975</link>
      <description>&lt;P&gt;I have multiple searches, and I need their results in a particular order.&lt;BR /&gt;&lt;BR /&gt;
I am trying to make a splunk view that shows results from multiple searches.  &lt;/P&gt;

&lt;P&gt;I am under the impression that to make it a splunk view, it must be created using splunk web-framework and has django bindings and whatnot. And because of that, it cannot have blocking searches.  &lt;/P&gt;

&lt;P&gt;I need to be able to retrieve search results in a particular order, so I am going to need blocking searches.  &lt;/P&gt;

&lt;P&gt;My question is, can I have blocking searches in a splunk-django application?  &lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2014 15:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Blocking-searches-using-splunkJS-stack/m-p/153169#M42975</guid>
      <dc:creator>ahmetcepoglu</dc:creator>
      <dc:date>2014-02-17T15:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking searches using splunkJS-stack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Blocking-searches-using-splunkJS-stack/m-p/153170#M42976</link>
      <description>&lt;P&gt;Hi ahmetcepoglu,&lt;/P&gt;

&lt;P&gt;You can do this using the web-framework, and you don't need to use Django. The web-framework provides Django functionality, but everything is also available from javascript. You can also write an application that mixes Django with JavaScript. &lt;/P&gt;

&lt;P&gt;Your scenario can be accomplished by creating &lt;STRONG&gt;searchmanagers&lt;/STRONG&gt; and listening to their &lt;STRONG&gt;done&lt;/STRONG&gt; events. You'll have Javascript that looks something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var myManager = new SearchManager({
   id: 'myManager'
   search: '&amp;lt;your search here&amp;gt;
});
myManager.on('search:done', function(){
   //start next manager
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want more samples and explanations, the framework toolkit is a good place to start: &lt;A href="http://apps.splunk.com/app/1613/"&gt;http://apps.splunk.com/app/1613/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 17:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Blocking-searches-using-splunkJS-stack/m-p/153170#M42976</guid>
      <dc:creator>magnew_splunk</dc:creator>
      <dc:date>2014-02-28T17:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking searches using splunkJS-stack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Blocking-searches-using-splunkJS-stack/m-p/153171#M42977</link>
      <description>&lt;P&gt;Isn't that nonblocking call?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 19:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Blocking-searches-using-splunkJS-stack/m-p/153171#M42977</guid>
      <dc:creator>ahmetcepoglu</dc:creator>
      <dc:date>2014-02-28T19:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking searches using splunkJS-stack?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Blocking-searches-using-splunkJS-stack/m-p/153172#M42978</link>
      <description>&lt;P&gt;Yes, but if your goal is to run searches one after another, you can use it. For each search manager, you can set &lt;STRONG&gt;autostart&lt;/STRONG&gt; to false on creation. Then, you can start them when you want by calling &lt;STRONG&gt;startSearch&lt;/STRONG&gt; on them. So for instance, if I wanted to run two searches in sequence, I could do something like this:&lt;/P&gt;

&lt;P&gt;var myManager = new SearchManager({&lt;BR /&gt;
   id: 'myManager',&lt;BR /&gt;
   search: your search&lt;BR /&gt;
});&lt;/P&gt;

&lt;P&gt;var myManager2 = new SearchManager({&lt;BR /&gt;
   id: 'myManager',&lt;BR /&gt;
   autostart: false,&lt;BR /&gt;
   search: your search&lt;BR /&gt;
});&lt;/P&gt;

&lt;P&gt;myManager.on('search:done', function(){&lt;BR /&gt;
   myManager2.startSearch();&lt;BR /&gt;
});&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 19:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Blocking-searches-using-splunkJS-stack/m-p/153172#M42978</guid>
      <dc:creator>magnew_splunk</dc:creator>
      <dc:date>2014-02-28T19:48:27Z</dc:date>
    </item>
  </channel>
</rss>

