I have attached below my code snippet. I am using a free developer access machine. https://prd-p-lgqtg5v8fkdb.cloud.splunk.com
I am unable to login using my credentials.
public class Splunk {
public static void main(String args[]) throws IOException {
HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);
Map<String, Object> connectionArgs = new HashMap<String, Object>();
connectionArgs.put("host", "input-prd-p-lgqtg5v8fkdb.cloud.splunk.com");
connectionArgs.put("username", "test123");
connectionArgs.put("password", "test123");
connectionArgs.put("port", 8089);
connectionArgs.put("scheme", "https");
Service splunkService = Service.connect(connectionArgs);
}
}
Tried using a lot of ways. The curl works fine.
... View more