I have a python script, which collects Host, Port, username, password to create a connection. After this, it will pass the query and fetches the data from splunk.
My script is working perfectly if I run the script in local machine with local machine Host (means, Splunk has installed in the same machine)
But when I use the same script to connect with splunk which is running in AWS machine, it is unable to create a connection.
So what can be the issue?
SSH certificate? if, Yes, how can I specify this attribute in the script?
my script has only these:
host = host,
port = port,
username = username,
password = password