版本: 6.8-7.15
简而言之,当Elasticsearch的Watcher功能尝试触发报告生成但遇到问题时,就会出现此错误。这可能是由于权限不足、Watcher配置不正确或报告功能本身存在问题造成的。要解决此问题,您可以检查用户权限以确保他们有权生成报告。此外,检查Watcher配置是否存在任何错误。最后,检查报告功能的运行状况,确保它已正确设置且正常运行。
日志上下文 #
日志“Watch[{}] reporting[{}] Error response when trying to trigger reporting generation”的类名是 ReportingAttachmentParser.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入理解的人参考:
* Trigger the initial report generation and catch possible exceptions
*/
private HttpResponse requestReportGeneration(String watchId; String attachmentId; HttpRequest request) throws IOException {
HttpResponse response = httpClient.execute(request);
if (response.status() != 200) {
throw new ElasticsearchException("Watch[{}] reporting[{}] Error response when trying to trigger reporting generation " +
"host[{}]; port[{}] method[{}]; path[{}]; response[{}]"; watchId; attachmentId; request.host();
request.port(); request.method(); request.path(); response);
} return response;





