...

Text file src/edge-infra.dev/config/pallets/o11y/fluentbit/base/k8s-container/input-tail.yaml

Documentation: edge-infra.dev/config/pallets/o11y/fluentbit/base/k8s-container

     1apiVersion: fluentbit.fluent.io/v1alpha2
     2kind: ClusterInput
     3metadata:
     4  name: k8s-container
     5  labels:
     6    fluentbit.fluent.io/enabled: "true"
     7spec:
     8  alias: k8s-tail
     9  tail:
    10    bufferChunkSize: 512k
    11    bufferMaxSize: 10240k
    12    db: /var/log/flb_containers.db
    13    memBufLimit: 100MB
    14    multilineParser: docker
    15    path: /var/log/containers/*.log
    16    readFromHead: true
    17    refreshIntervalSeconds: 60
    18    skipLongLines: true
    19    tag: k8s_container.<namespace_name>_<pod_name>_<container_name>_<docker_id>
    20    tagRegex: (?<pod_name>[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<namespace_name>[^_]+)_(?<container_name>.+)-(?<docker_id>.+).log

View as plain text