fluent-logger-java icon indicating copy to clipboard operation
fluent-logger-java copied to clipboard

How to configure fluentd in log4j?

Open varghgeorge opened this issue 8 years ago • 7 comments

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?

varghgeorge avatar Mar 30 '16 16:03 varghgeorge

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

repeatedly avatar Apr 19 '16 17:04 repeatedly

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.

komamitsu avatar Apr 21 '16 17:04 komamitsu

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

beradrian avatar Mar 24 '17 09:03 beradrian

+1 would be nice to have this

Constantin07 avatar Nov 30 '17 21:11 Constantin07

+1 What is the progress on this?

I would also love to see this feature.

fredzqm avatar Mar 28 '18 17:03 fredzqm

I do struggle with this as well.

apchee avatar Apr 15 '19 17:04 apchee

Any solution to this problem?

solazs avatar Feb 19 '20 13:02 solazs