# logback-flume-appender **Repository Path**: iexamples/logback-flume-appender ## Basic Information - **Project Name**: logback-flume-appender - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-12-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README logback-flume-appender ====================== Logback appender to forward log messages to a Flume agent ## Configuration Entries * **application**: Application name, if unset it will be inferred from the application.name system property * **hostname**: Host name, if unset it will be inferred from the box host name via `InetAddress.getLocalHost().getHostName()` * **type**: Type of logging, will be ignored if unset * **flumeAgents**: Comma separated list of flume avro agents in format `{hostname}:{port}` * **flumeProperties**: Additional properties to create the flume RpcClient in format `{key}={value}` separated by `;` * **batchSize**: Set the batch size of events to report, overriding the default of 50 * **reportingWindow**: Override the maximum time spent trying to fill a batch, between 100ms and 10s * **additionalAvroHeaders**: Add additional headers to the events in format `{key}={value}` separated by `;` * **reporterMaxThreadPoolSize**: Set the maximum number of threads for the reporter to use, overriding the default 2 * **reporterMaxQueueSize**: Set the maximum number of event batches to keep in memory, overriding the default 50 **Sample configuration** ``` flume-es-1b.gilt.com:5000, flume-es-1c.gilt.com:5000, flume-es-1d.gilt.com:5000 connect-timeout=4000; request-timeout=8000 100 1000 myHeader=myValue smapleapp %d{HH:mm:ss.SSS} %-5level %logger{36} - \(%file:%line\) - %message%n%ex WARN %d{HH:mm:ss.SSS} %-5level %logger{36} - \(%file:%line\) - %message%n%ex ```