版本: 6.8-7.5
简而言之,当为 Elasticsearch 中的索引名称指定的时间格式无效时,就会发生此错误。索引名称时间格式设置用于根据当前日期和时间动态生成索引名称。要解决此问题,您应该检查指定的时间格式,并确保其符合正确的语法。您还可以参考 Elasticsearch 文档了解正确的时间格式。如果问题仍然存在,考虑将索引名称时间格式重置为其默认设置。
日志上下文 #
日志"[" + INDEX_NAME_TIME_FORMAT_SETTING.getKey() + “] 无效的索引名称时间格式:[” 类名是 Exporter.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的用户参考:
Settingsetting = INDEX_NAME_TIME_FORMAT_SETTING.getConcreteSettingForNamespace(config.name);
String format = setting.exists(config.settings()) ? setting.get(config.settings()) : INDEX_FORMAT;
try {
return DateFormatter.forPattern(format).withZone(ZoneOffset.UTC);
} catch (IllegalArgumentException e) {
throw new SettingsException("[" + INDEX_NAME_TIME_FORMAT_SETTING.getKey() + "] invalid index name time format: ["
+ format + "]"; e);
}
} public static List> getSettings() {





