fluent-plugin-record-modifier icon indicating copy to clipboard operation
fluent-plugin-record-modifier copied to clipboard

error when using whitelist

Open xidiandb opened this issue 4 years ago • 0 comments

    <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

xidiandb avatar Aug 28 '19 02:08 xidiandb