flb // docker logs

#
# docker host metrics and container logs
#

[INPUT]
        name docker
        interval_sec 3600
        tag docker

[INPUT]
        name tail
        path /var/lib/docker/containers/*/*.log
        docker_mode on
        parser json
        tag docker

[OUTPUT]
        name file
        match docker
        path /var/log
        file fluent-bit.OUTPUT.log

resources

https://docs.fluentbit.io/manual/pipeline/inputs/docker-metrics

https://docs.fluentbit.io/manual/pipeline/inputs/tail#docker_mode

https://stackoverflow.com/questions/73000422/how-to-classify-docker-container-logs-by-container-name-using-fluent-bit


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun