我已经安装了Splunk Python SDK 我正在尝试连接到splunk云 并给我这个错误
socket.error:[Errno 60]操作超时
这是我的代码
import splunklib.client as client
class SplunkSearch():
def __init__(self):
self.service = client.connect(
host=Config.DEVELOPMENT_CONF['splunk']['host'],
port=Config.DEVELOPMENT_CONF['splunk']['port'],
username=Config.DEVELOPMENT_CONF['splunk']['username'],
password=Config.DEVELOPMENT_CONF['splunk']['password'],timeout=None)