<?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: Why I am getting this error ? every credential is correctly provided? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-this-error-every-credential-is-correctly/m-p/414022#M73232</link>
    <description>&lt;P&gt;facing same issue,  have you resolved this one?&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 11:59:00 GMT</pubDate>
    <dc:creator>vasanthi77</dc:creator>
    <dc:date>2019-05-30T11:59:00Z</dc:date>
    <item>
      <title>Why I am getting this error ? every credential is correctly provided?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-this-error-every-credential-is-correctly/m-p/414020#M73230</link>
      <description>&lt;P&gt;import splunklib.client as client&lt;/P&gt;

&lt;P&gt;HOST = "Host IP"&lt;BR /&gt;
 PORT = 8089&lt;BR /&gt;
 USERNAME = "my username"&lt;BR /&gt;
 PASSWORD = "password"&lt;/P&gt;

&lt;P&gt;# Create a Service instance and log in &lt;BR /&gt;
 service = client.connect(&lt;BR /&gt;
     host=HOST,&lt;BR /&gt;
     port=PORT,&lt;BR /&gt;
     username=USERNAME,&lt;BR /&gt;
     password=PASSWORD)&lt;/P&gt;

&lt;P&gt;# Print installed apps to the console to verify login&lt;BR /&gt;
 for app in service.apps:&lt;BR /&gt;
     print app.name &lt;/P&gt;

&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;
  File "D:\Users\name\Downloads\splunk-sdk-python-1.6.5\splunklib\binding.py", line 861, in login&lt;BR /&gt;
    cookie="1") # In Splunk 6.2+, passing "cookie=1" will return the "set-cookie" header&lt;BR /&gt;
  File "D:\Users\name\Downloads\splunk-sdk-python-1.6.5\splunklib\binding.py", line 1208, in post&lt;BR /&gt;
    return self.request(url, message)&lt;BR /&gt;
  File "D:\Users\name\Downloads\splunk-sdk-python-1.6.5\splunklib\binding.py", line 1228, in request&lt;BR /&gt;
    raise HTTPError(response)&lt;BR /&gt;
splunklib.binding.HTTPError: HTTP 401 Unauthorized -- Login failed&lt;/P&gt;

&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;

&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;
  File "D:\Users\name\pyton programs\test.py", line 20, in &lt;BR /&gt;
    password=PASSWORD)&lt;BR /&gt;
  File "D:\Users\name\Downloads\splunk-sdk-python-1.6.5\splunklib\client.py", line 325, in connect&lt;BR /&gt;
    s.login()&lt;BR /&gt;
  File "D:\Users\name\Downloads\splunk-sdk-python-1.6.5\splunklib\binding.py", line 869, in login&lt;BR /&gt;
    raise AuthenticationError("Login failed.", he)&lt;BR /&gt;
splunklib.binding.AuthenticationError: Login failed.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 07:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-this-error-every-credential-is-correctly/m-p/414020#M73230</guid>
      <dc:creator>ramesh12345</dc:creator>
      <dc:date>2018-11-29T07:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why I am getting this error ? every credential is correctly provided?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-this-error-every-credential-is-correctly/m-p/414021#M73231</link>
      <description>&lt;P&gt;I have the same issue.  I found this "you must contact Splunk to ensure that the credentials being used have access to the API on port 8089"&lt;BR /&gt;
here:&lt;BR /&gt;
&lt;A href="https://interset.zendesk.com/hc/en-us/articles/115004545887-com-splunk-HttpException-HTTP-401-Login-failed-with-Splunk-Cloud"&gt;https://interset.zendesk.com/hc/en-us/articles/115004545887-com-splunk-HttpException-HTTP-401-Login-failed-with-Splunk-Cloud&lt;/A&gt;&lt;BR /&gt;
Please respond if you managed to get this working, I am struggling to get a response from Splunk (I cannot raise a request ticket).&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-this-error-every-credential-is-correctly/m-p/414021#M73231</guid>
      <dc:creator>_robind</dc:creator>
      <dc:date>2019-02-27T16:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why I am getting this error ? every credential is correctly provided?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-this-error-every-credential-is-correctly/m-p/414022#M73232</link>
      <description>&lt;P&gt;facing same issue,  have you resolved this one?&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 11:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-this-error-every-credential-is-correctly/m-p/414022#M73232</guid>
      <dc:creator>vasanthi77</dc:creator>
      <dc:date>2019-05-30T11:59:00Z</dc:date>
    </item>
  </channel>
</rss>

