port = syslogConfigResource.getProperty(LoggingConstants.SyslogProperties.SYSLOG_PORT);
realm = syslogConfigResource.getProperty(LoggingConstants.SyslogProperties.REALM);
userName = syslogConfigResource.getProperty(LoggingConstants.SyslogProperties.USER_NAME);
password = decriptPassword(syslogConfigResource.getProperty(LoggingConstants.SyslogProperties.PASSWORD));
} else {
SyslogConfiguration config = SyslogConfigManager.loadSyslogConfiguration();
url = config.getSyslogHostURL();
port = config.getPort();
realm = config.getRealm();
userName = config.getUserName();
password = config.getPassword();
}
return new SyslogData(url, port, realm, userName, password);
} catch (Exception e) {
log.error("Unable get SyslogData ", e);