我正在使用下面的处理器,但我想把它应用到所有领域。所以我需要在“field”中添加所有字段,还是有其他方法可以这样做。
"description": "my pipeline that remvoves empty string and null strings",
"processors": [
{
"remove": {
"field": "my_field",
"ignore_missing": true,
"if": "ctx.my_field == \"null\" || ctx.my_field == \"\""
}
}
}
2条答案
按热度按时间4ktjp1zp1#
您可以使用逗号、分隔字段名或
*
(不确定是否支持,我正在尝试这个),但是comma(,)
如官方文件所示,当然要分开工作https://www.elastic.co/guide/en/elasticsearch/reference/master/remove-processor.html
qlfbtfca2#
这个
remove
处理器不允许使用通配符*
用于检查所有字段。相反,你可以选择script
处理器并以通用方式自行完成: