<?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: Using Splunk HEC and validating Certificates in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563095#M100333</link>
    <description>&lt;P&gt;If you are trying to test sending data to your HEC then you need to pass in the token, not the certs.&lt;BR /&gt;Something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k  https://hec.example.com:8088/services/collector/event -H "Authorization: Splunk B5A79AAD-D822-46CC-80D1-819F80D7BFB0" -d '{"event": "hello world"}'
{"text": "Success", "code": 0}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;See the documentation for more info.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2106/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.2.2106/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 16:00:26 GMT</pubDate>
    <dc:creator>codebuilder</dc:creator>
    <dc:date>2021-08-12T16:00:26Z</dc:date>
    <item>
      <title>Using Splunk HEC and validating Certificates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563088#M100329</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen that when I am doing a post request to&amp;nbsp;"&lt;A href="https://splunk_host:8088/services/collector/event" target="_blank"&gt;https://splunk_host:8088/services/collector/event&lt;/A&gt;" with validate_cert=False its successfully sending the data to Splunk from my application. Where as when I tried with validate_cert=True i am getting errors like "Self signed Certificate error " or&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Cannot connect to host localhost:8088 ssl:default [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;so what should I do to not get this error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 14:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563088#M100329</guid>
      <dc:creator>Kamaal_Mohammed</dc:creator>
      <dc:date>2021-08-12T14:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk HEC and validating Certificates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563089#M100330</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237394"&gt;@Kamaal_Mohammed&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you configure ssl cert on this host? Is it using default cert OR CA-signed cert (internal OR external).&lt;/P&gt;&lt;P&gt;you can find this by using the btool command&lt;/P&gt;&lt;P&gt;/opt/splunk/bin/splunk btool inputs list http --debug | grep serverCert&lt;/P&gt;&lt;P&gt;You need to copy over the root cert from the above path to the source from which you are doing this post request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 15:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563089#M100330</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2021-08-12T15:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk HEC and validating Certificates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563095#M100333</link>
      <description>&lt;P&gt;If you are trying to test sending data to your HEC then you need to pass in the token, not the certs.&lt;BR /&gt;Something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k  https://hec.example.com:8088/services/collector/event -H "Authorization: Splunk B5A79AAD-D822-46CC-80D1-819F80D7BFB0" -d '{"event": "hello world"}'
{"text": "Success", "code": 0}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;See the documentation for more info.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2106/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.2.2106/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 16:00:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563095#M100333</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-08-12T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk HEC and validating Certificates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563160#M100338</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have done that with curl it works fine but when comes to my application when I try with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;request = HTTPRequest(url&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;method&lt;/SPAN&gt;=&lt;SPAN&gt;'POST'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;body&lt;/SPAN&gt;=json.dumps(body)&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;=headers)&lt;BR /&gt;response = &lt;SPAN&gt;await &lt;/SPAN&gt;HttpUtils.make_async_request(request&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;eat_exceptions&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;where URL is&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://hec.example.com:8088/services/collector/event&lt;/PRE&gt;&lt;P&gt;and I am passing the token too like&lt;/P&gt;&lt;PRE&gt;headers = {&lt;SPAN&gt;'Authorization'&lt;/SPAN&gt;: &lt;SPAN&gt;'Splunk B5A79AAD-D822-46CC-80D1-819F80D7BFB0'&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;Still I am getting the error of 'SSL:-self-signed certificate in chain' whereas when I try with curl no error.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 08:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563160#M100338</guid>
      <dc:creator>Kamaal_Mohammed</dc:creator>
      <dc:date>2021-08-13T08:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk HEC and validating Certificates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563172#M100340</link>
      <description>&lt;P&gt;It looks like you are using Python to push data in Splunk via HEC, can you please let us know which python modules are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 12:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/563172#M100340</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2021-08-13T12:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk HEC and validating Certificates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/630403#M108057</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you find what was wrong ?&lt;/P&gt;&lt;P&gt;I have a similar behaviour : curl with ssl to send HEC events works fine, but from a python app, not so well :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Socket error while idling: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Any idea ?&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Ema&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 07:11:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Splunk-HEC-and-validating-Certificates/m-p/630403#M108057</guid>
      <dc:creator>emallinger</dc:creator>
      <dc:date>2023-02-10T07:11:31Z</dc:date>
    </item>
  </channel>
</rss>

