A log appender factory for Dropwizard adding support for appending logs to GELF compatible servers.
dropwizard-logging-gelf can be found in maven central.
<dependency>
<groupId>com.jamierf.dropwizard</groupId>
<artifactId>dropwizard-logging-gelf</artifactId>
<version>...</version>
</dependency>
logging:
appenders:
- type: gelf
server: localhost:9200
defaultFields: {"host": "local-host-01", "environment": "local", "facility": "ims"}
additionalFields: {"ms": "timestampMs", "thread_name": "threadName", "source_method_name": "SourceMethodName", "threadId": "threadId"}
Released under the Apache 2.0 License.