Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

API Login not working - Splunk 6. 4 Free

$
0
0
Hi all, I am not sure why this python code is not working: import splunklib.client as client service = client.connect( host="192.168.2.125", port=8089) All I get is the following trace Traceback (most recent call last): File "C:/Users/Name/Desktop/test/splunk/splkTest.py", line 13, in 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. I even tried to define username="admin" in the login but the effect is the same. Is this a limitation of the splunk free version (6.4.1) or I am doing it wrong? Thank you !

Viewing all articles
Browse latest Browse all 47296

Trending Articles