📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-6.8

简而言之,当 Elasticsearch 尝试解析 HipChat 消息时遇到意外字段,就会发生此错误。这可能是由于 HipChat 消息的数据结构与 Elasticsearch 中预期的结构不匹配导致的。要解决此问题,您可以:1) 检查 HipChat 消息的结构,确保它与 Elasticsearch 映射匹配。2) 更新 Elasticsearch 映射以容纳意外字段。3) 如果该字段不是必需的,修改 HipChat 消息以删除意外字段。

日志上下文 #

日志 “failed to parse hipchat message. unexpected field [{}]” 的类名是 HipChatMessage.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

} catch (IllegalArgumentException ilae) {
 throw new ElasticsearchParseException("failed to parse hipchat message. failed to parse [{}] field"; ilae;
 Field.FORMAT.getPreferredName());
 }
 } else {
 throw new ElasticsearchParseException("failed to parse hipchat message. unexpected field [{}]"; currentFieldName);
 }
 }  if (body == null) {
 throw new ElasticsearchParseException("failed to parse hipchat message. missing required [{}] field";