<?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 Using Splunk SDK for C#, getting errors regarding WebException and connection closure. in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-SDK-for-C-getting-errors-regarding-WebException-and/m-p/445906#M8086</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I am new to Splunk (and new to Software Dev for that matter). My company uses splunkSDK (C#) nugget package to log data about user activity in one of our apps. I understand that this is an older version and now Splunk.Client should be used instead.&lt;/P&gt;
&lt;P&gt;So I am trying to learn how to use Splunk SDK in order to access statistics about the log data fed into Splunk and display them in the app. That is why I am keen on running the examples first with a separate profile to avoid messing up the real data.&lt;/P&gt;
&lt;P&gt;In the meantime, I have downloaded and installed the &lt;STRONG&gt;free Splunk Enterprise&lt;/STRONG&gt; platform locally and went through the search examples.&lt;/P&gt;
&lt;P&gt;I have downloaded the SDK for C#, compiled the solution, updated the dummy credentials to match my Splunk Enterprise trial profile, and tried to run any of the examples. I get the following error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;WebException: The underlying connection was closed: The connection was closed unexpectedly. with http
WebException: The request was aborted: Could not create SSL/TLS secure channel. with https
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The following curl command does successfully return an XML response, which would imply that authentication is achieved for the local Splunk Enterprise host that I have installed on my machine. (Obviously credentials are updated when the following was run)&lt;/P&gt;
&lt;P&gt;curl -k &lt;A href="https://localhost:8089/services/auth/login--data-urlencodeusername=admin--data-urlencodepassword=pass" target="_blank"&gt;https://localhost:8089/services/auth/login--data-urlencodeusername=admin--data-urlencodepassword=pass&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please let me know if I am not specific enough so I can update the question. Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 22:25:18 GMT</pubDate>
    <dc:creator>harrisflourentz</dc:creator>
    <dc:date>2020-06-17T22:25:18Z</dc:date>
    <item>
      <title>Using Splunk SDK for C#, getting errors regarding WebException and connection closure.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-SDK-for-C-getting-errors-regarding-WebException-and/m-p/445906#M8086</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am new to Splunk (and new to Software Dev for that matter). My company uses splunkSDK (C#) nugget package to log data about user activity in one of our apps. I understand that this is an older version and now Splunk.Client should be used instead.&lt;/P&gt;
&lt;P&gt;So I am trying to learn how to use Splunk SDK in order to access statistics about the log data fed into Splunk and display them in the app. That is why I am keen on running the examples first with a separate profile to avoid messing up the real data.&lt;/P&gt;
&lt;P&gt;In the meantime, I have downloaded and installed the &lt;STRONG&gt;free Splunk Enterprise&lt;/STRONG&gt; platform locally and went through the search examples.&lt;/P&gt;
&lt;P&gt;I have downloaded the SDK for C#, compiled the solution, updated the dummy credentials to match my Splunk Enterprise trial profile, and tried to run any of the examples. I get the following error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;WebException: The underlying connection was closed: The connection was closed unexpectedly. with http
WebException: The request was aborted: Could not create SSL/TLS secure channel. with https
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The following curl command does successfully return an XML response, which would imply that authentication is achieved for the local Splunk Enterprise host that I have installed on my machine. (Obviously credentials are updated when the following was run)&lt;/P&gt;
&lt;P&gt;curl -k &lt;A href="https://localhost:8089/services/auth/login--data-urlencodeusername=admin--data-urlencodepassword=pass" target="_blank"&gt;https://localhost:8089/services/auth/login--data-urlencodeusername=admin--data-urlencodepassword=pass&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please let me know if I am not specific enough so I can update the question. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 22:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-SDK-for-C-getting-errors-regarding-WebException-and/m-p/445906#M8086</guid>
      <dc:creator>harrisflourentz</dc:creator>
      <dc:date>2020-06-17T22:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk.Client C# - Cannot Connect to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-SDK-for-C-getting-errors-regarding-WebException-and/m-p/445907#M8087</link>
      <description>&lt;P&gt;Unfortunately the C# sdk has been broken since the new auth mechanisms were put in place circa 7.1+&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 11:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-SDK-for-C-getting-errors-regarding-WebException-and/m-p/445907#M8087</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-07-07T11:44:48Z</dc:date>
    </item>
  </channel>
</rss>

