<?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 did curl failed with error code 56? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-curl-failed-with-error-code-56/m-p/626351#M107604</link>
    <description>&lt;P&gt;I am trying to list existing HEC tokens with curl command as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k -u admin:&amp;lt;admin_password&amp;gt; http://&amp;lt;splunk_enterprise_instance_ip&amp;gt;:8089/servicesNS/admin/splunk_httpinput/data/inputs/http -v&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It retruned as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;*   Trying 192.168.30.128...
* TCP_NODELAY set
* Connected to 192.168.30.128 (192.168.30.128) port 8089 (#0)
* Server auth using Basic with user 'admin'
&amp;gt; GET /servicesNS/admin/splunk_httpinput/data/inputs/http HTTP/1.1
&amp;gt; Host: &amp;lt;splunk_enterprise_instance_ip&amp;gt;:8089
&amp;gt; Authorization: Basic YWRtaW46UGFzc3dvcmQwMTIzIQ==
&amp;gt; User-Agent: curl/7.61.1
&amp;gt; Accept: */*
&amp;gt;
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From splunkd.log:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;01-09-2023 11:42:33.082 +0800 WARN  HttpListener [3447 HttpDedicatedIoThread-0] - Socket error from &amp;lt;splunk_enterprise_instance_ip&amp;gt;:38846 while idling: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems this is ownign to SSL.&lt;/P&gt;
&lt;P&gt;However, I have disbaled SSL in both Splunk Enterprise Instance and HEC, from inputs.conf:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[dujas@centos8-1 local]$ cat /home/dujas/splunk/etc/apps/splunk_httpinput/local/inputs.conf
[http]
disabled = 0
enableSSL = 0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I l know how I could make the http work?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 16:28:10 GMT</pubDate>
    <dc:creator>dujas</dc:creator>
    <dc:date>2023-01-09T16:28:10Z</dc:date>
    <item>
      <title>Why did curl failed with error code 56?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-curl-failed-with-error-code-56/m-p/626351#M107604</link>
      <description>&lt;P&gt;I am trying to list existing HEC tokens with curl command as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k -u admin:&amp;lt;admin_password&amp;gt; http://&amp;lt;splunk_enterprise_instance_ip&amp;gt;:8089/servicesNS/admin/splunk_httpinput/data/inputs/http -v&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It retruned as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;*   Trying 192.168.30.128...
* TCP_NODELAY set
* Connected to 192.168.30.128 (192.168.30.128) port 8089 (#0)
* Server auth using Basic with user 'admin'
&amp;gt; GET /servicesNS/admin/splunk_httpinput/data/inputs/http HTTP/1.1
&amp;gt; Host: &amp;lt;splunk_enterprise_instance_ip&amp;gt;:8089
&amp;gt; Authorization: Basic YWRtaW46UGFzc3dvcmQwMTIzIQ==
&amp;gt; User-Agent: curl/7.61.1
&amp;gt; Accept: */*
&amp;gt;
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From splunkd.log:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;01-09-2023 11:42:33.082 +0800 WARN  HttpListener [3447 HttpDedicatedIoThread-0] - Socket error from &amp;lt;splunk_enterprise_instance_ip&amp;gt;:38846 while idling: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems this is ownign to SSL.&lt;/P&gt;
&lt;P&gt;However, I have disbaled SSL in both Splunk Enterprise Instance and HEC, from inputs.conf:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[dujas@centos8-1 local]$ cat /home/dujas/splunk/etc/apps/splunk_httpinput/local/inputs.conf
[http]
disabled = 0
enableSSL = 0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I l know how I could make the http work?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 16:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-did-curl-failed-with-error-code-56/m-p/626351#M107604</guid>
      <dc:creator>dujas</dc:creator>
      <dc:date>2023-01-09T16:28:10Z</dc:date>
    </item>
    <item>
      <title>curl failed with error code 56</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-curl-failed-with-error-code-56/m-p/626362#M107605</link>
      <description>&lt;P&gt;I noticed the splunkdssl is enabled by default in server.conf, after disabling it in config file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sslConfig]
enableSplunkdSSL = False&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afterwards, I issued the same curl command and got output as below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;entry&amp;gt;
    &amp;lt;title&amp;gt;http://test3&amp;lt;/title&amp;gt;
    &amp;lt;id&amp;gt;http://&amp;lt;splunk_enterprise_instance_IP&amp;gt;:8089/servicesNS/nobody/splunk_httpinput/data/inputs/http/http%3A%252F%252Ftest3&amp;lt;/id&amp;gt;
    &amp;lt;updated&amp;gt;2023-01-09T14:05:29+08:00&amp;lt;/updated&amp;gt;
    &amp;lt;link href="/servicesNS/nobody/splunk_httpinput/data/inputs/http/http%3A%252F%252Ftest3" rel="alternate"/&amp;gt;
    &amp;lt;author&amp;gt;
      &amp;lt;name&amp;gt;admin&amp;lt;/name&amp;gt;
    &amp;lt;/author&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Token "test3" is the one I create via "http-event-collector" command, it could be loaded successfully, but for tokens created via GUI (before disabling splunkdssl), they are still failed to retrieve.&lt;/P&gt;&lt;P&gt;Any ideas why would that happen?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 06:12:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-did-curl-failed-with-error-code-56/m-p/626362#M107605</guid>
      <dc:creator>dujas</dc:creator>
      <dc:date>2023-01-09T06:12:24Z</dc:date>
    </item>
  </channel>
</rss>

