<?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: Splunk API, curl and php in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16166#M1898</link>
    <description>&lt;P&gt;What Splunk version are you on?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2010 20:02:29 GMT</pubDate>
    <dc:creator>rroberts</dc:creator>
    <dc:date>2010-08-06T20:02:29Z</dc:date>
    <item>
      <title>Splunk API, curl and php</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16163#M1895</link>
      <description>&lt;P&gt;I'm trying to get partial results having a job id through REST API how can i do it?&lt;/P&gt;

&lt;P&gt;I'm using curl and php.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2010 05:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16163#M1895</guid>
      <dc:creator>rzjac</dc:creator>
      <dc:date>2010-06-25T05:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk API, curl and php</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16164#M1896</link>
      <description>&lt;P&gt;What do you mean by "partial" results?  Like a subset?  You have to pull the events or results back in chunks at a time so you can just pull a few times and then stop when you have enough data.  (Thought it may be a better option to limit your search with &lt;CODE&gt;| head 1000&lt;/CODE&gt; or something)&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2010 05:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16164#M1896</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-25T05:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk API, curl and php</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16165#M1897</link>
      <description>&lt;P&gt;I'd like to pull results as they arrive. Like on the web interface for splunk. I don't want to wait till whole job is finished.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2010 05:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16165#M1897</guid>
      <dc:creator>rzjac</dc:creator>
      <dc:date>2010-06-25T05:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk API, curl and php</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16166#M1898</link>
      <description>&lt;P&gt;What Splunk version are you on?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2010 20:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16166#M1898</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2010-08-06T20:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk API, curl and php</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16167#M1899</link>
      <description>&lt;P&gt;There are PHP examples you might find useful here... &lt;/P&gt;

&lt;P&gt;&lt;A href="http://code.google.com/p/splunk-php-sdk/source/browse/trunk/Search.php" rel="nofollow"&gt;http://code.google.com/p/splunk-php-sdk/source/browse/trunk/Search.php&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; * Retrieves a list of search jobs on the server.
 * 
 * @param bool $as_objects If TRUE, returns an array of Splunk_Search_Result
 *     objects instead of an array of associative arrays.
 * @param string $result_class If $as_objects is true, use this class name
 *     to instantiate the search result objects for each job.
 * @return mixed Array on success, FALSE on failure
 * @access public
 */
public function listJobs($as_objects = false, $result_class = 'Splunk_Search_Result')
{
    $result = $this-&amp;gt;send('/services/search/jobs', null, 'GET');
    if (! $this-&amp;gt;last_successful) {
        return false;
    }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Aug 2010 04:47:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-API-curl-and-php/m-p/16167#M1899</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2010-08-07T04:47:22Z</dc:date>
    </item>
  </channel>
</rss>

