fluent-plugin-record-modifier
fluent-plugin-record-modifier copied to clipboard
error when using whitelist
<source>
@type tail
<parse>
@type json
</parse>
path /var/log/containers/kube-dns*
path_key path
pos_file /var/log/es-kubernetes.pos
tag k8s
</source>
<filter k8s>
@type parser
key_name path
reserve_data true
remove_key_name_field true
<parse>
@type regexp
expression /^.*kube-(?<service_type>.+)-(master|slave).*/
</parse>
</filter>
<filter k8s>
@type record_modifier
<record>
Payload ${record['log']}
</record>
whitelist_keys Payload,service_type
</filter>
and the error is :
ArgumentError error="path does not exist
There are no errors when I delete the whitelist