Skip to content

Instantly share code, notes, and snippets.

@tanmay-bhat
Last active June 22, 2022 12:42
Show Gist options
  • Save tanmay-bhat/496a798565963c84815a2096de1a47b0 to your computer and use it in GitHub Desktop.
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
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