<?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 API Login not working - Splunk 6. 4 Free in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272302#M3419</link>
    <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I am not sure why this python  code is not working: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import splunklib.client as client

service = client.connect(
    host="192.168.2.125",
    port=8089)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All I get is the following trace&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Traceback (most recent call last):
  File "C:/Users/Name/Desktop/test/splunk/splkTest.py", line 13, in &amp;lt;module&amp;gt;
    port=8089)
  File "C:\Python27\lib\site-packages\splunk_sdk-1.6.0-py2.7.egg\splunklib\client.py", line 321, in connect
    s.login()
  File "C:\Python27\lib\site-packages\splunk_sdk-1.6.0-py2.7.egg\splunklib\binding.py", line 865, in login
    raise AuthenticationError("Login failed.", he)
splunklib.binding.AuthenticationError: Login failed.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I even tried to define username="admin" in the login but the effect is the same. &lt;BR /&gt;
Is this a limitation of the splunk free version  (6.4.1) or I am doing it wrong?&lt;/P&gt;

&lt;P&gt;Thank you !&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2016 21:06:47 GMT</pubDate>
    <dc:creator>pinVie</dc:creator>
    <dc:date>2016-05-27T21:06:47Z</dc:date>
    <item>
      <title>API Login not working - Splunk 6. 4 Free</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272302#M3419</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I am not sure why this python  code is not working: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import splunklib.client as client

service = client.connect(
    host="192.168.2.125",
    port=8089)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All I get is the following trace&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Traceback (most recent call last):
  File "C:/Users/Name/Desktop/test/splunk/splkTest.py", line 13, in &amp;lt;module&amp;gt;
    port=8089)
  File "C:\Python27\lib\site-packages\splunk_sdk-1.6.0-py2.7.egg\splunklib\client.py", line 321, in connect
    s.login()
  File "C:\Python27\lib\site-packages\splunk_sdk-1.6.0-py2.7.egg\splunklib\binding.py", line 865, in login
    raise AuthenticationError("Login failed.", he)
splunklib.binding.AuthenticationError: Login failed.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I even tried to define username="admin" in the login but the effect is the same. &lt;BR /&gt;
Is this a limitation of the splunk free version  (6.4.1) or I am doing it wrong?&lt;/P&gt;

&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 21:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272302#M3419</guid>
      <dc:creator>pinVie</dc:creator>
      <dc:date>2016-05-27T21:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: API Login not working - Splunk 6. 4 Free</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272303#M3420</link>
      <description>&lt;P&gt;Generally speaking, Splunk Free doesn't have authentication. See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Admin/MoreaboutSplunkFree#What_is_included_with_Splunk_Free.3F"&gt;About Splunk Free&lt;/A&gt; in the &lt;EM&gt;Admin Manual&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;But see jkat54's comment, immediately below.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 23:32:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272303#M3420</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2016-05-27T23:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: API Login not working - Splunk 6. 4 Free</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272304#M3421</link>
      <description>&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/43809/does-splunk-free-license-allow-usage-of-rest-api.html"&gt;https://answers.splunk.com/answers/43809/does-splunk-free-license-allow-usage-of-rest-api.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This seems to suggest it will support the API and login will not be required... there's just a small step of setting something in server.conf.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 23:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272304#M3421</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-27T23:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: API Login not working - Splunk 6. 4 Free</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272305#M3422</link>
      <description>&lt;P&gt;Innnnteresting. TIL. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 23:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272305#M3422</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2016-05-27T23:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: API Login not working - Splunk 6. 4 Free</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272306#M3423</link>
      <description>&lt;P&gt;Ah damn it I knew this page but had a mistake in my code. &lt;BR /&gt;
So the login is working - code has to look like this in python&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;service = client.connect(
    host="192.168.2.125",
    port=8089,
    username="admin")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you &lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 09:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/API-Login-not-working-Splunk-6-4-Free/m-p/272306#M3423</guid>
      <dc:creator>pinVie</dc:creator>
      <dc:date>2016-05-28T09:52:46Z</dc:date>
    </item>
  </channel>
</rss>

