<?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: Simple search using cURL returns empty results in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Simple-search-using-cURL-returns-empty-results/m-p/298399#M56457</link>
    <description>&lt;P&gt;Even I am facing the same issue, Is it resolved? I didnt get the desiredoutput when I tried this HTTP Post method. And I am also looking for resultCount value.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 18:13:28 GMT</pubDate>
    <dc:creator>gu255363</dc:creator>
    <dc:date>2017-09-22T18:13:28Z</dc:date>
    <item>
      <title>Simple search using cURL returns empty results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-search-using-cURL-returns-empty-results/m-p/298397#M56455</link>
      <description>&lt;P&gt;I tried following a simple cURL request based on the training video and I get no results.&lt;/P&gt;

&lt;P&gt;I run my search:&lt;BR /&gt;
curl -u id:password -k &lt;A href="https://server:port/services/search/jobs"&gt;https://server:port/services/search/jobs&lt;/A&gt; -d search="search index=windows user=mylogin"&lt;/P&gt;

&lt;P&gt;I get back a SID then search the SID for being complete.&lt;/P&gt;

&lt;P&gt;curl -u id:password -k &lt;A href="https://server:port/services/search/jobs/SID"&gt;https://server:port/services/search/jobs/SID&lt;/A&gt;&lt;BR /&gt;
see that it isDone = 1  then I l try to look at the results:&lt;/P&gt;

&lt;P&gt;curl -u id:password -k &lt;A href="https://server:port/services/search/jobs/SID/results"&gt;https://server:port/services/search/jobs/SID/results&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;get nothing back?&lt;/P&gt;

&lt;P&gt;when I execute the same in C# using a web client I get a method not allowed. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-search-using-cURL-returns-empty-results/m-p/298397#M56455</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2017-08-23T11:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple search using cURL returns empty results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-search-using-cURL-returns-empty-results/m-p/298398#M56456</link>
      <description>&lt;P&gt;Did you try with HTTP POST method ? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -X POST -u id:password &lt;A href="https://server:port/services/search/jobs/SID" target="test_blank"&gt;https://server:port/services/search/jobs/SID&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3no&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-search-using-cURL-returns-empty-results/m-p/298398#M56456</guid>
      <dc:creator>3no</dc:creator>
      <dc:date>2017-08-23T14:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simple search using cURL returns empty results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-search-using-cURL-returns-empty-results/m-p/298399#M56457</link>
      <description>&lt;P&gt;Even I am facing the same issue, Is it resolved? I didnt get the desiredoutput when I tried this HTTP Post method. And I am also looking for resultCount value.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 18:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-search-using-cURL-returns-empty-results/m-p/298399#M56457</guid>
      <dc:creator>gu255363</dc:creator>
      <dc:date>2017-09-22T18:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Simple search using cURL returns empty results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-search-using-cURL-returns-empty-results/m-p/298400#M56458</link>
      <description>&lt;P&gt;you need to add --get -d outputmode=csv (json,xml) etc&lt;/P&gt;

&lt;P&gt;curl -k  -u id:password &lt;A href="https://server:port/services/search/jobs/SID/results"&gt;https://server:port/services/search/jobs/SID/results&lt;/A&gt; --get -d "outputmode=csv" &amp;gt; save to file or as required.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 11:58:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-search-using-cURL-returns-empty-results/m-p/298400#M56458</guid>
      <dc:creator>shivarpith</dc:creator>
      <dc:date>2018-07-25T11:58:14Z</dc:date>
    </item>
  </channel>
</rss>

