版本: 6.8-8.9
简要来说,当 Elasticsearch 无法解析监视器 (watch) 操作时会出现此错误,原因是缺少操作类型。监视器 (Watcher) 在 Elasticsearch 中用于告警和监控。该错误表明缺少操作类型 (action type),操作类型用于定义在满足条件时应采取什么操作。要解决此问题,您应该检查监视器定义并确保它包含有效的操作类型。这可以是 email、webhook、index、logging 等。确保操作类型格式正确并放置在监视器定义的正确部分。
日志上下文 #
日志 “could not parse watch action [{}/{}]. missing action type” 的类名是 ActionWrapper.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入背景信息的人参考:
action = actionFactory.parseExecutable(watchId, actionId, parser);
}
if (action == null) {
throw new ElasticsearchParseException("could not parse watch action [{}/{}]. missing action type", watchId, actionId);
}
ActionThrottler throttler = new ActionThrottler(clock, throttlePeriod, licenseState);
return new ActionWrapper(actionId, throttler, condition, transform, action, path, maxIterations);





