我正在使用splunk-SDK收集API以获取数据。
import time
import splunklib.client as client
import splunklib.results as results
HOST = "iaasn00033501"
PORT = 8089
USERNAME = "XXXXXX"
PASSWORD = "XXXXXX"
# Create a Service instance and log in
service = client.connect(host=HOST,port=PORT,username=USERNAME,password=PASSWORD)
我收到了错误socket.gaierror:提供了[Errno-2]节点名或servname,或者未知。
非常感谢您的帮助。