<?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 splunk-sdk-python-1.2.2 -&amp;gt; stop working after upgrading to Splunk 6.0  from Splunk 4.3 in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/splunk-sdk-python-1-2-2-gt-stop-working-after-upgrading-to/m-p/183966#M2446</link>
    <description>&lt;P&gt;After upgrading to Splunk 6.X all our python scripts that use the latest version of splunk sdk “splunk-sdk-python-1.2.2” stop working. The error we constantly get is the following:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;CODE&gt;ssl.SSLError: [Errno 1] _ssl.c:492: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Has anyone faced this issue?&lt;BR /&gt;
How did you solve it?&lt;/P&gt;

&lt;P&gt;These are the connection parameters we used. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HOST = "myhost.com"
PORT = 8089
USERNAME = "myaccountid"
PASSWORD = "mypassword"
OWNER = "myaccountid"
APP = "search"

# Create a Service instance and log in
service = client.connect(
    host=HOST,
    port=PORT,
    username=USERNAME,
    password=PASSWORD,
    app=APP,
    owner=OWNER,
    )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After a couple of tests and reading the splunk sdk API. I realized that https scheme is the default in splunklib.client.connect. However, after the upgrade it looks like the splunk admin disabled the support of https. So the issue was solved as follow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HOST = "myhost.com"
PORT = 8089
USERNAME = "myaccountid"
PASSWORD = "mypassword"
OWNER = "myaccountid"
SCHEME = "http"
APP = "search"

# Create a Service instance and log in
service = client.connect(
    host=HOST,
    port=PORT,
    username=USERNAME,
    password=PASSWORD,
    app=APP,
    owner=OWNER,
    scheme=SCHEME
    )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Mar 2014 14:33:57 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2014-03-12T14:33:57Z</dc:date>
    <item>
      <title>splunk-sdk-python-1.2.2 -&gt; stop working after upgrading to Splunk 6.0  from Splunk 4.3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunk-sdk-python-1-2-2-gt-stop-working-after-upgrading-to/m-p/183966#M2446</link>
      <description>&lt;P&gt;After upgrading to Splunk 6.X all our python scripts that use the latest version of splunk sdk “splunk-sdk-python-1.2.2” stop working. The error we constantly get is the following:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;CODE&gt;ssl.SSLError: [Errno 1] _ssl.c:492: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Has anyone faced this issue?&lt;BR /&gt;
How did you solve it?&lt;/P&gt;

&lt;P&gt;These are the connection parameters we used. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HOST = "myhost.com"
PORT = 8089
USERNAME = "myaccountid"
PASSWORD = "mypassword"
OWNER = "myaccountid"
APP = "search"

# Create a Service instance and log in
service = client.connect(
    host=HOST,
    port=PORT,
    username=USERNAME,
    password=PASSWORD,
    app=APP,
    owner=OWNER,
    )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After a couple of tests and reading the splunk sdk API. I realized that https scheme is the default in splunklib.client.connect. However, after the upgrade it looks like the splunk admin disabled the support of https. So the issue was solved as follow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HOST = "myhost.com"
PORT = 8089
USERNAME = "myaccountid"
PASSWORD = "mypassword"
OWNER = "myaccountid"
SCHEME = "http"
APP = "search"

# Create a Service instance and log in
service = client.connect(
    host=HOST,
    port=PORT,
    username=USERNAME,
    password=PASSWORD,
    app=APP,
    owner=OWNER,
    scheme=SCHEME
    )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Mar 2014 14:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunk-sdk-python-1-2-2-gt-stop-working-after-upgrading-to/m-p/183966#M2446</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2014-03-12T14:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-sdk-python-1.2.2 -&gt; stop working after upgrading to Splunk 6.0  from Splunk 4.3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunk-sdk-python-1-2-2-gt-stop-working-after-upgrading-to/m-p/183967#M2447</link>
      <description>&lt;P&gt;I've seen that before when non SSL forwarders try to connect to an SSL indexer (or vice versa - I forget which).  The point is, I got that error message while working with basic splunk features, not even with the python SDK.&lt;/P&gt;

&lt;P&gt;Anyway - I bet if you make sure everyone's talking the same thing (SSL or http) then you'll find the issue is resolved.  Maybe the latest splunk defaults to SSL and the python code you have is still talking http?  I'd also remove any sslPassword fields to force splunk to regen them...just for good measure.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2014 14:47:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunk-sdk-python-1-2-2-gt-stop-working-after-upgrading-to/m-p/183967#M2447</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2014-03-12T14:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-sdk-python-1.2.2 -&gt; stop working after upgrading to Splunk 6.0  from Splunk 4.3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunk-sdk-python-1-2-2-gt-stop-working-after-upgrading-to/m-p/183968#M2448</link>
      <description>&lt;P&gt;also when requireClientCert=true is enabled the service = client.connect() fails&lt;BR /&gt;
any information on this ?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 08:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunk-sdk-python-1-2-2-gt-stop-working-after-upgrading-to/m-p/183968#M2448</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2015-11-25T08:09:45Z</dc:date>
    </item>
  </channel>
</rss>

