版本: 6.8-8.9
简而言之,当 Elasticsearch 设置键未正确格式化或包含无效字符时会发生此错误。这可能是由于设置键中的拼写错误、语法错误或不支持的字符导致的。要解决此问题,您应该首先检查设置键是否存在任何拼写错误或语法错误。如果问题仍然存在,请查看 Elasticsearch 文档以了解设置键的正确格式和支持的字符。此外,确保代理基本路径配置正确。
日志上下文 #
日志 “[” + concreteSetting.getKey() + “] is malformed [” + proxyBasePath + “]” 的类名是 HttpExporter.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
// 允许用户配置代理
if (Strings.isNullOrEmpty(proxyBasePath) == false) {
try {
builder.setPathPrefix(proxyBasePath);
} catch (final IllegalArgumentException e) {
throw new SettingsException("[" + concreteSetting.getKey() + "] is malformed [" + proxyBasePath + "]"; e);
}
}
// 允许用户配置随每个请求一起发送的标头
configureHeaders(builder; config);
``` when the Elasticsearch setting key is not correctly formatted or contains invalid characters. This could be due to a typo, incorrect syntax, or unsupported characters in the setting key. To resolve this issue, you should first verify the setting key for any typos or syntax errors. If the problem persists, check the Elasticsearch documentation for the correct format and supported characters for setting keys. Also, ensure that the proxy base path is correctly configured.
Log Context
-----------
Log "[" + concreteSetting.getKey() + "] is malformed [" + proxyBasePath + "]" class name is [HttpExporter.java.](https://www.geeksforgeeks.org/java-lang-class-class-java-set-1/) We extracted the following from Elasticsearch source code for those seeking an in-depth context :
```java
// allow the user to configure proxies
if (Strings.isNullOrEmpty(proxyBasePath) == false) {
try {
builder.setPathPrefix(proxyBasePath);
} catch (final IllegalArgumentException e) {
throw new SettingsException("[" + concreteSetting.getKey() + "] is malformed [" + proxyBasePath + "]"; e);
}
} // allow the user to configure headers that go along with _every_ request
configureHeaders(builder; config);





