Code Monkey home page Code Monkey logo

Comments (4)

Jitsusama avatar Jitsusama commented on May 24, 2024 1

Hello @ameyrk18; I've run into this problem myself. This is generally caused when fluentd is configured to write out log events to STDOUT, when configured to use systemd as the log-driver, when fluentd is configured to process logs from systemd.

You've basically created a loop, where one container sends a log to STDERR/STDOUT, Docker forwards this to systemd, systemd forwards this to fluentd, fluentd forwards this to STDOUT, which forwards to systemd, which forwards to fluentd, which...

The way I've gotten around this is by configuring the fluentd Docker container to use json-file as its log-driver. When you configure the log-driver in /etc/docker/daemon.json, that sets the default log-driver, but you can still over-ride this on container creation with the --log-driver json-file option being passed to docker container run.

from fluent-plugin-systemd.

ameyrk18 avatar ameyrk18 commented on May 24, 2024 1

Hi @Jitsusama yes your right that happens when the output driver is set stdout. Ahh, yes now I get the loops :) weird. Not sure if this is expected or not.

I bypassed this as you said. Reconfigured my docker logging to journald and forced the container (fluentd) to use json logging.

Many thanks for your inputs.

I leave this topic with the owner to close this if this is not an issue.

Thanks,
Amey

from fluent-plugin-systemd.

errm avatar errm commented on May 24, 2024

Thanks for raising this @ameyrk18

I guess we should document that this can happen ...

Am I correct in thinking @ameyrk18 that when this issue occurs you are reading the full journal without setting matches/filters?

from fluent-plugin-systemd.

ameyrk18 avatar ameyrk18 commented on May 24, 2024

@errm . I will document this and update READ.me

Yes your understanding is correct I am reading full journal without setting matches/filters.

Best Regards,
Amey

from fluent-plugin-systemd.

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.