fluent/fluent-logger-java

How to configure fluentd in log4j?

varghgeorge opened this issue · 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?

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

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.

+1 would be nice to have this

+1 What is the progress on this?

I would also love to see this feature.

I do struggle with this as well.

Any solution to this problem?