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

版本: 6.8-7.15

简而言之,当 Elasticsearch 由于不支持内容类型中的键提取而无法解析监视器的输入时,就会出现此错误。这可能是由于监视器定义中的语法不正确或数据类型不正确导致的。要解决此问题,您可以:1) 审查并更正监视器定义的语法,确保其符合预期格式。2) 检查输入的数据类型,它应该与监视器定义兼容。3) 如果您的 Elasticsearch 版本已过时,请更新它,因为某些功能可能在旧版本中不受支持。

日志上下文 #

日志 “could not parse [{}] input for watch [{}]. key extraction is not supported for content” 的类名是 HttpInput.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

    throw new ElasticsearchParseException("could not parse [{}] input for watch [{}]. missing require [{}] field", TYPE, watchId,
        Field.REQUEST.getPreferredName());
}  if (expectedResponseBodyType == HttpContentType.TEXT && extract != null ) {
    throw new ElasticsearchParseException("could not parse [{}] input for watch [{}]. key extraction is not supported for content" +
        " type [{}]", TYPE, watchId, expectedResponseBodyType);
}  return new HttpInput(request, expectedResponseBodyType, extract);
}