I have another question that the if I have multiple host servers, How can I combine them together and run at the same time?
Currently I only know how to work it on a single host.
My code is :
import splunklib.client as client
import splunklib.results as results
from dateutil.parser import parse
HOST = "host 1"
PORT = 8089
USERNAME = "xxxx"
PASSWORD = "xxxx"
service = client.connect(
rr = results.ResultsReader(service.jobs.export("splunk query")
for result in rr: