I created the .splunkrc file and correctly stored it in C:\Users\username.splunkrc
I filled it out with correct credentials.
1) I am trying to access KV store (the credentials work when I enter via cmd line but not when using .splunkrc😞
opts = parse(sys.argv[1:], {}, ".splunkrc")
opts.kwargs["owner"] = "nobody"
opts.kwargs["app"] = "search"
service = client.connect(**opts.kwargs)
I get this error: socket.error: [Errno 10061] No connection could be made because the target machine actively refused it
2) How do I use the .splunkrc for a regular search query connect? I am currently doing this (hardcoded data):
# Create a Service instance and log in
service = client.connect(
host=HOST,
port=PORT,
username=USERNAME,
password=PASSWORD)
... View more