<?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: Problem with Curl Request to Splunk Server in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674379#M18378</link>
    <description>&lt;P&gt;You seem to be specifying that you want to use SSL (https) but you don't appear to be providing any certificates etc. Have you tried using http instead?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2024 14:18:54 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-01-16T14:18:54Z</dc:date>
    <item>
      <title>Problem with Curl Request to Splunk Server</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674371#M18376</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;I'm trying to send a curl request from my local machine to a Splunk server, but I'm encountering the following error. Have you come across this error before? I've found similar issues on stackoverflow, but none of the solutions seem to work for me. I thought reaching out here might provide quick support in case anyone has experienced a specific issue related to this. Thank you in advance for your assistance.&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;aaa.bbb@MyComputer-xxx ~ % curl &lt;A href="https://1.1.1.1:8088/services/collector/raw" target="_blank" rel="noopener"&gt;https://1.1.1.1:8088/services/collector/raw&lt;/A&gt; -H "Authorization: Splunk XXXX-XXXX-XXXX-XXXX-XXXX" -d '{"event": "cheesecake"}' --insecure&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;Output:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;curl: (35) LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 13:53:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674371#M18376</guid>
      <dc:creator>btluynk</dc:creator>
      <dc:date>2024-01-16T13:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Curl Request to Splunk Server</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674373#M18377</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="btluynk_0-1705413996079.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28950i2C989830F04B8386/image-size/medium?v=v2&amp;amp;px=400" role="button" title="btluynk_0-1705413996079.png" alt="btluynk_0-1705413996079.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 14:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674373#M18377</guid>
      <dc:creator>btluynk</dc:creator>
      <dc:date>2024-01-16T14:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Curl Request to Splunk Server</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674379#M18378</link>
      <description>&lt;P&gt;You seem to be specifying that you want to use SSL (https) but you don't appear to be providing any certificates etc. Have you tried using http instead?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 14:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674379#M18378</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-16T14:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Curl Request to Splunk Server</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674382#M18379</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thank you for your response, I am sharing the outputs I got when I tried using HTTP and HTTPS below. It may be due to the SSL setting of the Http collector, but I think there will be other logs affected.&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="2"&gt;XXX.XXX@XXX-XXX-XXX ~ % curl -kv &lt;A href="http://1.1.1.1:8088/services/collector/raw" target="_blank"&gt;http://1.1.1.1:8088/services/collector/raw&lt;/A&gt; -H "Authorization: Splunk XXX-XXX-XXX-XXX-XXX" -d '{"event": "cheesecake"}' --insecure&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="2"&gt;* Trying 1.1.1.1:8088...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;* Connected to 1.1.1.1 (1.1.1.1) port 8088 (#0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;gt; POST /services/collector/raw HTTP/1.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;gt; Host: 1.1.1.1:8088&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;gt; User-Agent: curl/8.1.2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;gt; Accept: */*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;gt; Authorization: Splunk XXX-XXX-XXX-XXX-XXX&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;gt; Content-Length: 23&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;gt; Content-Type: application/x-www-form-urlencoded&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;gt; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; HTTP/1.1 200 OK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; Date: Tue, 16 Jan 2024 14:31:55 GMT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; Content-Type: application/json; charset=UTF-8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; X-Content-Type-Options: nosniff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; Content-Length: 27&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; Vary: Authorization&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; Connection: Keep-Alive&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; X-Frame-Options: SAMEORIGIN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; Server: Splunkd&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;&amp;lt; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;* Connection #0 to host 1.1.1.1 left intact&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;{"text":"Success","code":0}%&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;XXX.XXX@XXX-XXX-XXX ~ % curl -kv &lt;A href="https://1.1.1.1:8088/services/collector/raw" target="_blank"&gt;https://1.1.1.1:8088/services/collector/raw&lt;/A&gt; -H "Authorization: Splunk XXX-XXX-XXX-XXX-XXX" -d '{"event": "cheesecake"}' --insecure&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="2"&gt;* Trying 1.1.1.1:8088...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;* Connected to 1.1.1.1 (1.1.1.1) port 8088 (#0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;* ALPN: offers h2,http/1.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;* (304) (OUT), TLS handshake, Client hello (1):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;* LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;* Closing connection 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="2"&gt;curl: (35) LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 14:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674382#M18379</guid>
      <dc:creator>btluynk</dc:creator>
      <dc:date>2024-01-16T14:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Curl Request to Splunk Server</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674385#M18380</link>
      <description>&lt;P&gt;OK. Wait a second. Do you even have TLS enabled on this port?&lt;/P&gt;&lt;P&gt;Check output of&lt;/P&gt;&lt;PRE&gt;openssl s_client -connect your_splunk_ip:8088&lt;/PRE&gt;&lt;P&gt;for errors as well as check your _internal index for errors regarding your client's IP.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 14:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674385#M18380</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-16T14:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Curl Request to Splunk Server</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674389#M18381</link>
      <description>&lt;P class=""&gt;&lt;FONT face="helvetica" size="3"&gt;&lt;SPAN class=""&gt;Hi team,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="helvetica" size="3"&gt;&lt;SPAN class=""&gt;In this output, it appears that TLS is enabled based on the following information:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;XXX.XXX@XXX-XXX-XXX ~ % openssl s_client -connect 1.1.1.1:8088&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;CONNECTED(00000003)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;140704518969088:error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version:/AppleInternal/Library/BuildRoots/d9889869-120b-11ee-b796-7a03568b17ac/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_lib.c:151:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;---&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;no peer certificate available&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;---&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;No client certificate CA names sent&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;---&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;SSL handshake has read 5 bytes and written 294 bytes&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;---&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;New, (NONE), Cipher is (NONE)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;Secure Renegotiation IS NOT supported&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;Compression: NONE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;Expansion: NONE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;No ALPN negotiated&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;SSL-Session:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Protocol&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;: TLSv1.3&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Cipher&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;: 0000&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Session-ID: &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Session-ID-ctx: &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Master-Key: &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Start Time: 1705416962&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Timeout &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;: 7200 (sec)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Verify return code: 0 (ok)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="andale mono,times" size="2"&gt;&lt;SPAN class=""&gt;---&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN class=""&gt;I dont understand but the "Protocol" field indicates TLS version 1.3, and the "Cipher" field would typically show the cipher suite being used. The "Verify return code" of 0 indicates that the certificate verification was successful. However, there is an error related to the TLS protocol version alert, which might be due to a compatibility issue between the OpenSSL version used and the TLS version supported by the server. If this is not causing any problems with the connection, it might be negligible.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 15:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674389#M18381</guid>
      <dc:creator>btluynk</dc:creator>
      <dc:date>2024-01-16T15:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Curl Request to Splunk Server</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674417#M18383</link>
      <description>&lt;P&gt;No. It can be a bit misleading but it shows that TLS isn't properly configured on this port. With TLS you should have gotten a server certificate and all the gory encryption protocols details.&lt;/P&gt;&lt;P&gt;Also as you noticed yourself in the other comment - you can properly call curl requesting a simple non-encrypted http:// resource. Since Splunk doesn't serve both TLS-enabled and not-enabled services on the same port, it means you simply have to configure it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 17:55:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674417#M18383</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-16T17:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Curl Request to Splunk Server</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674477#M18389</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;Thank you for your support. The problem was solved when I changed the command by typing hostname instead of IP.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 08:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Problem-with-Curl-Request-to-Splunk-Server/m-p/674477#M18389</guid>
      <dc:creator>btluynk</dc:creator>
      <dc:date>2024-01-17T08:22:32Z</dc:date>
    </item>
  </channel>
</rss>

