fluent / fluent/fluent-logger-java

How to configure fluentd in log4j?

Open
#54 7 comments 11 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
210
Forks
86
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the fluent-logger-java project and the referenced log4j.xml example, then separate the SocketAppender configuration question from the Fluentd log-file monitoring question. The issue is complete when the supported configuration path, or the lack of one, is documented for both concerns.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability-sre
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.