}
}
private InputStream getLogDataStream(String logFile, int tenantId, String productName)
throws Exception {
SyslogData syslogData = getSyslogData();
String url = "";
// manager can view all the products tenant information
url = getLogsServerURLforTenantService(syslogData.getUrl(), logFile, tenantId, productName);
String password = syslogData.getPassword();
String userName = syslogData.getUserName();
int port = Integer.parseInt(syslogData.getPort());
String realm = syslogData.getRealm();
URI uri = new URI(url);
String host = uri.getHost();
HttpClient client = new HttpClient();
client.getState().setCredentials(new AuthScope(host, port, realm),
new UsernamePasswordCredentials(userName, password));