Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

fluentbit is not catching an logs with docker (even with the example on the docker hub page) #25

Open
Fettah opened this issue Oct 11, 2019 · 1 comment

Comments

@Fettah
Copy link

Fettah commented Oct 11, 2019

I went throught the official docker_hub page and tried the example to test fluentbit with an ubuntu docker image here: https://hub.docker.com/r/fluent/fluent-bit/

unfortunatly, I see nothing here catched by fluentbit.

running:
docker run -p 127.0.0.1:24224:24224 fluent/fluent-bit:latest
followed by:
docker run --log-driver=fluentd -t ubuntu echo "Testing a log message"
displays nothing on the fluentbit output in the console.
am I missing something here, or is the page outdated ?

I was trying fluentbit with an nginx container in a docker-compose file to catch nginx logs and it did not work, so I started from 0 with the official documentation on the docker_hub web page.

Here is my docker-compose.yml

version: '3.2'
services:
  nginx:
    container_name: nginx
    image: nginx:1.15.0
    ports:
      - 7070:80
    links:
      - fluentbit
    logging:
      driver: "fluentd"
      options:
        fluentd-address: 127.0.0.1:24224
        tag: nginx.access

  fluentbit:
    container_name: fluentbit
    image: fluent/fluent-bit:1.3
    ports:
      - "24224:24224"
      - "24224:24224/udp"

@rifqifatih
Copy link

@Fettah Solution in #11 seems to work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants