疲劳是最舒适的枕头,努力工作吧。

ingest node中的pipeline如何处理文档字段缺失或为null的情形?

Elasticsearch | 作者 the_best | 发布于2018年03月15日 | 阅读数:2282

ingest node的pipeline特性和logstash是很类似的。但是本人在使用date processor时由于字段在部分文档中缺失或为null,导致发生异常。目前pipeline是不是还无法像logstash一样可以通过 if [field_name]这种分支判断语法来根据字段存在与否使用processor。查看了官方文档,始终没有找到解决方法。希望有知道的,不吝赐教。
已邀请:

xinfanwang

赞同来自:

试试on_failure机制。
https://www.elastic.co/guide/e ... .html
script processor应该也可以。
https://www.elastic.co/guide/e ... .html

要回复问题请先登录注册