Optional<String> passwordValue = Optional.ofNullable(props.getProperty(ES_TRUST_STORE_ENC));
if (passwordValue.isPresent()) {
+ if(passwordValue.get().startsWith("OBF:")){
setTrustStorePassword(Password.deobfuscate(passwordValue.get()));
+ }else{
+ setTrustStorePassword(passwordValue.get());
+ }
}
Optional<String> keyStoreFile = Optional.ofNullable(props.getProperty(ES_KEY_STORE));
passwordValue = Optional.ofNullable(props.getProperty(ES_KEY_STORE_ENC));
if (passwordValue.isPresent()) {
+ if(passwordValue.get().startsWith("OBF:")){
setKeyStorePassword(Password.deobfuscate(passwordValue.get()));
+ }else{
+ setKeyStorePassword(passwordValue.get());
+ }
}
}
metricsLogger.info(message,
new LogFields() //
.setField(LogLine.DefinedFields.RESPONSE_CODE, operationResult.getResultCode())
- .setField(LogLine.DefinedFields.RESPONSE_DESCRIPTION, operationResult.getResult()),
+ .setField(LogLine.DefinedFields.RESPONSE_DESCRIPTION, operationResult.getResult())
+ .setField(LogLine.DefinedFields.SERVER_IP, "ElasticHost-"+config.getIpAddress()),
override, args);
}
}