<?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: how to get status of search query using javascript ? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211544#M2807</link>
    <description>&lt;P&gt;thx for reply but i tryed that and it don't work&lt;/P&gt;

&lt;P&gt;i don't know what can i ask to load on progress&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysearch.on('search:progress', function(properties) {
            // Print just the event count from the search job
            console.log("IN PROGRESS.\nEvents so far:", properties.content.eventCount);
            document.getElementById("progresstext").innerHTML="In progress with " + properties.content.eventCount + " events...";
        });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here it used mysearch, but for a oneshotsearch what can i use, i tryed the service, the search ID but no result.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2017 07:28:04 GMT</pubDate>
    <dc:creator>sfatnass</dc:creator>
    <dc:date>2017-01-03T07:28:04Z</dc:date>
    <item>
      <title>how to get status of search query using javascript ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211542#M2805</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i use query search using javascript based on onshotsearch &lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/javascript-sdk/SP-CAAAEKZ"&gt;http://dev.splunk.com/view/javascript-sdk/SP-CAAAEKZ&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;i want to get status on progress search or adding jobprogressindicator with javascript.&lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 15:44:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211542#M2805</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2017-01-02T15:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to get status of search query using javascript ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211543#M2806</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/webframework-codeexamples/SP-CAAAEVT"&gt;http://dev.splunk.com/view/webframework-codeexamples/SP-CAAAEVT&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/webframework-developapps/SP-CAAAEU5"&gt;http://dev.splunk.com/view/webframework-developapps/SP-CAAAEU5&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 05:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211543#M2806</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2017-01-03T05:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to get status of search query using javascript ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211544#M2807</link>
      <description>&lt;P&gt;thx for reply but i tryed that and it don't work&lt;/P&gt;

&lt;P&gt;i don't know what can i ask to load on progress&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysearch.on('search:progress', function(properties) {
            // Print just the event count from the search job
            console.log("IN PROGRESS.\nEvents so far:", properties.content.eventCount);
            document.getElementById("progresstext").innerHTML="In progress with " + properties.content.eventCount + " events...";
        });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here it used mysearch, but for a oneshotsearch what can i use, i tryed the service, the search ID but no result.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 07:28:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211544#M2807</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2017-01-03T07:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to get status of search query using javascript ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211545#M2808</link>
      <description>&lt;P&gt;Sorry. I have overlooked about oneshot. As per definition, it does not return any result until search completes. So it looks like you could only get the final result&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Oneshot&lt;/STRONG&gt;: A oneshot search is a blocking search that is scheduled to run immediately. Instead of returning a search job, this mode returns the results of the search once completed. Because this is a blocking search, the results are not available until the search has finished.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 08:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211545#M2808</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2017-01-03T08:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to get status of search query using javascript ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211546#M2809</link>
      <description>&lt;P&gt;Ok bave an example using a simple search and return progress result?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 08:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211546#M2809</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2017-01-03T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to get status of search query using javascript ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211547#M2810</link>
      <description>&lt;P&gt;Below is an example code for simple search and return progress but no oneshot.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/webframework-codeexamples/SP-CAAAEVT"&gt;http://dev.splunk.com/view/webframework-codeexamples/SP-CAAAEVT&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 08:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-to-get-status-of-search-query-using-javascript/m-p/211547#M2810</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2017-01-03T08:47:46Z</dc:date>
    </item>
  </channel>
</rss>

