I am connecting to Splunk using splunklib and connecting to splunk in the following manner using Username and password:-
service = client.connect(host=host_name,
scheme="https",
port=splunk_conf["port"],
username,
password,
autologin=True,
verify=False)
Even though autologin is set to true I am getting the below error
splunklib.binding.AuthenticationError: Autologin succeeded, but there was an auth error on next request. Something is very wrong
I tried adding basic = true as suggested in the link https://github.com/splunk/splunk-sdk-python/issues/219 but that is making the queries slow as it requires to login for every splunk query.