Giter VIP home page Giter VIP logo

Comments (6)

tagomoris avatar tagomoris commented on June 25, 2024

Use type syslog
http://docs.fluentd.org/articles/in_syslog

from fluentd-docker-image.

superdump avatar superdump commented on June 25, 2024

Yes, but doesn't one need to use the host machine ip or something?

from fluentd-docker-image.

viztastic avatar viztastic commented on June 25, 2024

Hi @tagomoris I have the same question, not sure how to run fluentd inside a container but still have it handle logging for containers on the host machine..?

from fluentd-docker-image.

superdump avatar superdump commented on June 25, 2024

You have to run the fluentd container with the json-file log driver.

Also, running fluentd in a container listening for syslog logs on a TCP port creates a situation where if the fluentd container is not running for some reason, docker will refuse to start other containers as the syslog log driver cannot initialise.

This felt too dangerous to me and I instead opted for using the json-file log driver with log rotation options set and using fluentd's file input, mapping /var/lib/docker/containers into the fluentd container.

from fluentd-docker-image.

viztastic avatar viztastic commented on June 25, 2024

Hi @superdump is there an example I can refer to by any chance? Much appreciated.

from fluentd-docker-image.

MrMMorris avatar MrMMorris commented on June 25, 2024

@superdump just as an FYI, a fail-on-startup-error log-opt flag has been added in docker 1.11 that will ignore fluentd being unreachable and allow you to start containers anyway:

https://github.com/jnummelin/docker/blob/3cf82ff1ab14e1ddd2b629524e894ac359168388/docs/admin/logging/fluentd.md#fail-on-startup-error

I have backported it to 1.9.1 and built my own docker binary because I don't have time to wait until 1.11 for a solution to such an obvious issue.

from fluentd-docker-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.