版本: 6.8-7.15
简要来说,当 Elasticsearch 中配置了多个相同类型的导出器时,就会出现此错误。这是不允许的,因为它可能导致冲突和意外行为。要解决此问题,您应该检查 Elasticsearch 配置,确保每种导出器类型只配置一次。如果您发现重复的导出器,请删除或修改重复项以确保唯一性。或者,您可以重命名导出器以避免冲突。
日志上下文 #
日志 “multiple [” + type + “] exporters are configured. there can " 的类名是 Exporters.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入背景的人参考:
Exporter exporter = factory.create(config);
if (exporter.isSingleton()) {
// this is a singleton exporter; let's make sure we didn't already create one
// (there can only be one instance of a singleton exporter)
if (singletons.contains(type)) {
throw new SettingsException("multiple [" + type + "] exporters are configured. there can " +
"only be one [" + type + "] exporter configured");
}
singletons.add(type);
}
exporters.put(config.name(), exporter);





