Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure fluentd in log4j? #54

Open
varghgeorge opened this issue Mar 30, 2016 · 7 comments
Open

How to configure fluentd in log4j? #54

varghgeorge opened this issue Mar 30, 2016 · 7 comments

Comments

@varghgeorge
Copy link

Two questions/issues

  1. Based on fluentd java logger https://github.com/fluent/fluent-logger-java
    Looks like I need to create and use fluentd logger in my application.

I dont want to add Fluentd related code into my application. So, is there a way to log to fluentd by configuring the SocketAppender in log4j?

Similar to logstash config for log4j below?
https://github.com/agorski/logstash-log4j-example/blob/master/src/main/resources/log4j.xml

  1. How do I configure Fluentd to monitor/access a log file/directory?
@repeatedly
Copy link
Member

@komamitsu How about this? Does your fluency support it?

@komamitsu
Copy link
Member

fluent-logger-java and https://github.com/komamitsu/fluency don't support an integration with log4j.

But I'm interested in that kind of integration. I'll try to integrate fluency with log4j when I have time.

@beradrian
Copy link

Have you tried https://github.com/tuxetuxe/fluentd4log4j ?

@Constantin07
Copy link

Constantin07 commented Nov 30, 2017

+1 would be nice to have this

@fredzqm
Copy link

fredzqm commented Mar 28, 2018

+1 What is the progress on this?

I would also love to see this feature.

@apchee
Copy link

apchee commented Apr 15, 2019

I do struggle with this as well.

@solazs
Copy link

solazs commented Feb 19, 2020

Any solution to this problem?

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

No branches or pull requests

8 participants