Skip to content

xnopre/fluentd-log4j-appender

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fluentd-log4j-appender

Overview

An appender for Log4j to send logs to Fluentd daemon.

Usage

Example for log4j.properties file :

  log4j.rootLogger=ERROR, Console, Fluentd
  
  log4j.appender.Console=...
  ...
  
  log4j.appender.Fluentd=org.fluentd.logger.sender.appender.FluentAppender
  log4j.appender.Fluentd.host=host-with-fluentd
  log4j.appender.Fluentd.port=24224
  log4j.appender.Fluentd.tag=mytag
  log4j.appender.Fluentd.label=mylabel

Parameters

host

Host name running Fluentd daemon

  • Default : localhost

port

TCP port to join Fluentd daemon

  • Default : 24224

tag

Tag name for Fluentd logs

  • Default : log4j-appender

label

Label associated to logs sent

  • Default : label

Fluentd configuration

Example to insert in /etc/td-agent/td-agent.conf:

<match log4j-appender.label>
  type stdout
</match>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%