<?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 Why is my Splunk REST API search not working and getting error &amp;quot;curl: (56) Failure when receiving data from the peer&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261824#M78606</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have the following rest call on a new 6.4 environment, and it's coming back with error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl: (56) Failure when receiving data from the peer    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not sure what's wrong...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u  admin:pass -k &lt;A href="http://myhost:8089/servicesNS/-/-/search/jobs/export" target="test_blank"&gt;http://myhost:8089/servicesNS/-/-/search/jobs/export&lt;/A&gt; -d search="search index=_internal|head 2 |table sourcetype, eventtype, source, host" -d output_mode=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The admin account has all the reset capabilities enabled on it.&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2016 19:26:38 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2016-05-23T19:26:38Z</dc:date>
    <item>
      <title>Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261824#M78606</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have the following rest call on a new 6.4 environment, and it's coming back with error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl: (56) Failure when receiving data from the peer    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not sure what's wrong...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u  admin:pass -k &lt;A href="http://myhost:8089/servicesNS/-/-/search/jobs/export" target="test_blank"&gt;http://myhost:8089/servicesNS/-/-/search/jobs/export&lt;/A&gt; -d search="search index=_internal|head 2 |table sourcetype, eventtype, source, host" -d output_mode=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The admin account has all the reset capabilities enabled on it.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 19:26:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261824#M78606</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2016-05-23T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261825#M78607</link>
      <description>&lt;P&gt;You gave it http instead of https and -k twice (which means ignore ssl issues).  Providing -k twice isn't required.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; curl -k -u admin &lt;A href="https://myhost:8089/servicesNS/-/-/search/jobs/export" target="test_blank"&gt;https://myhost:8089/servicesNS/-/-/search/jobs/export&lt;/A&gt; -d search="search index=_internal|head 2 |table sourcetype, eventtype, source, host" -d output_mode=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You don't need the -k if it isn't https OR if the certificate is valid for the connection.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 19:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261825#M78607</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-23T19:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261826#M78608</link>
      <description>&lt;P&gt;I had the same issue, and this method worked for me. Thank you jkat!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 19:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261826#M78608</guid>
      <dc:creator>supabuck</dc:creator>
      <dc:date>2016-08-22T19:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261827#M78609</link>
      <description>&lt;P&gt;@a212830, did this answer work for you? If so, can you please mark it as the answer?&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 15:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261827#M78609</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-07T15:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261828#M78610</link>
      <description>&lt;P&gt;@a212830 can you come back to this thread please?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 21:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261828#M78610</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-06-14T21:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261829#M78611</link>
      <description>&lt;P&gt;thanks a lot, helped me!&lt;BR /&gt;
question: why this search does not work&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;curl -ku admin&lt;BR /&gt;
&lt;A href="http://myserver:8089/services/search/jobs/export"&gt;http://myserver:8089/services/search/jobs/export&lt;/A&gt;&lt;BR /&gt;
-d search= "| makeresults | eval amount=1001, score=777 "&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 20:59:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261829#M78611</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2020-04-15T20:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261830#M78612</link>
      <description>&lt;P&gt;it works fine! thanks!&lt;BR /&gt;
could you tell please why this does not work&lt;BR /&gt;
curl -ku admin &lt;A href="http://myserver:8089/services/search/jobs/export"&gt;http://myserver:8089/services/search/jobs/export&lt;/A&gt; -d search= "| makeresults | eval amount=1001, score=777 "&lt;BR /&gt;
?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 21:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261830#M78612</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2020-04-15T21:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261831#M78613</link>
      <description>&lt;P&gt;Because the splunk rest api uses HTTPS protocol.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 21:21:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261831#M78613</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-04-15T21:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261832#M78614</link>
      <description>&lt;P&gt;sorry, i meant this&lt;BR /&gt;
curl -k -u admin &lt;A href="https://localhost:8089/services/search/jobs/export"&gt;https://localhost:8089/services/search/jobs/export&lt;/A&gt; -d search= "| makeresults | eval amount=1001, score=777 "&lt;BR /&gt;
&amp;lt;-- this does not work...&lt;/P&gt;

&lt;P&gt;I'm playing with &lt;STRONG&gt;Google's GCP&lt;/STRONG&gt;, temporarily installed a "little" Splunk version there. And something is wrong with the &lt;STRONG&gt;access point&lt;/STRONG&gt;. It perfectly worked at my job.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 21:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261832#M78614</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2020-04-15T21:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk REST API search not working and getting error "curl: (56) Failure when receiving data from the peer"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261833#M78615</link>
      <description>&lt;P&gt;Please create a new question with these details.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 13:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-Splunk-REST-API-search-not-working-and-getting-error/m-p/261833#M78615</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-04-24T13:19:14Z</dc:date>
    </item>
  </channel>
</rss>

