Hi Team I am getting the below error while trying to access splunk Rest API . . I am trying to login using the username and password. Is there any other access required to successfully Login .Please help on the same. Below is the code snippet Map<String,Object> connectionArgs=new HashMap<String,Object>(); connectionArgs.put("host", "myHost"); connectionArgs.put("username", "myUsename"); connectionArgs.put("password", "myPassword"); connectionArgs.put("port",8089); connectionArgs.put("scheme","https"); HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2); Service service=Service.connect(connectionArgs); Exception in thread "main" com.splunk.HttpException: HTTP 401 -- Login failed at com.splunk.HttpException.create(HttpException.java:84) at com.splunk.HttpService.send(HttpService.java:452) at com.splunk.Service.send(Service.java:1293) at com.splunk.HttpService.post(HttpService.java:308)
... View more