inway / fluent-plugin-kubernetes-parser

Fluentd parser plugin to parse some Kubernetes and containerd specific log file formats.
Apache License 2.0
0 stars 0 forks source link

add how to call this parser in the config #1

Open thusharajayakody1 opened 1 year ago

thusharajayakody1 commented 1 year ago

Please add how to call this parser in the config

<filter kube-proxy-> @type parser key-name message reserve_data true reserve_time false

in a configuration Like this

SPodjasek commented 1 year ago

This is mostly internal use plugin, is it even listed somewhere?

And about your request - do you mean something like that:

      <filter {systemd.containerd,systemd.kubelet}>
        @type parser
        key_name "message"
        reserve_time false
        reserve_data true
        remove_key_name_field true
        emit_invalid_record_to_error true
        <parse>
          @type kubernetes
          time_format %Y-%m-%dT%H:%M:%S.%N%:z
        </parse>
      </filter>