Flume Appender
The Flume Appender allows applications to send events to Flume Agents.
Remote Agent
Including the Log4j flume-ng jar in your Maven-based project as a dependency should cause all the
transitive dependencies necessary for the remote Agent to function to be included.
Persistent Agent
The persistent agent uses Berkeley DB. The following dependency should be added to your pom.xml
in addition to the log4j-flume-ng dependency.
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.sleepycat</groupId>
- <artifactId>je</artifactId>
- <version>5.0.73</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.sleepycat</groupId>
- <artifactId>je</artifactId>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>oracleReleases</id>
- <name>Oracle Released Java Packages</name>
- <url>http://download.oracle.com/maven</url>
- <layout>default</layout>
- </repository>
- </repositories>
Embedded Agent
The following is a sample pom file for Maven that can be used as a template for integrating the
Flume Embedded Appender into an application.
Requirements
The Flume Appender requires at least Java 6.
|