Last active
June 22, 2022 12:42
-
-
Save tanmay-bhat/496a798565963c84815a2096de1a47b0 to your computer and use it in GitHub Desktop.
fluent-bit docker-compose example file which collects and parses apache & nginx logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.5" | |
services: | |
fluentbit: | |
image: cr.fluentbit.io/fluent/fluent-bit | |
ports: | |
- "24224:24224" | |
- "24224:24224/udp" | |
volumes: | |
- ./:/fluent-bit/etc/ | |
flog: | |
image: mingrammer/flog | |
command: '-l' | |
depends_on: | |
- fluentbit | |
logging: | |
driver: fluentd | |
options: | |
tag: apache | |
nginx: | |
image: kscarlett/nginx-log-generator | |
depends_on: | |
- fluentbit | |
logging: | |
driver: fluentd | |
options: | |
tag: nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment