I have the following script, but it keeps erroring out. def connect_to_splunk(username,password,host='http://xxxxxxxx.splunkcloud.com',port='8089',owner='admin',app='search',sharing='user' t...
See more...
I have the following script, but it keeps erroring out. def connect_to_splunk(username,password,host='http://xxxxxxxx.splunkcloud.com',port='8089',owner='admin',app='search',sharing='user' try: service=client.connect(username=username,password=password,host=host,port=port,owner=owner,app='search',sharing=sharing) if splunk_service: print("Splunk login successful") print("......................" ) except Exception as e: print(e) def main(): try: splunk_service = connect_to_splunk(username='xxxxxx',password='xxxxxxx') except Exception as e: print(e) There is no error from the debugger (Using Visual Studio). Would appreciate any assistance.