Git Product home page Git Product logo

dropwizard-elk-appender's Introduction

Dropwizard ELK Appender

Build Quality Gate Status Coverage CodeQL javadoc License: MIT Maven Central

Dropwizard Logging Appender to send logging events to the ELK stack.

How to use

Install library with Maven:

    <dependency>
        <groupId>org.kiwiproject</groupId>
        <artifactId>dropwizard-elk-appender</artifactId>
        <version>[current-version]</version>
    </dependency>

Add to Dropwizard config:

    logging:
      level: WARN
      appenders:
        - type: elk
          host: localhost
          port: 9000

Properties that can be set in the config:

Property Name Default Description
host (required) blank Hostname for the logstash server
port (required) 0 Port (greater than zero) for the logstash server
includeCallerData false Whether the calling data gets included in the message to logstash
includeMdc true Whether to include the MDC in the message to logstash
includeContext true Whether to include the logging context in the message to logstash
customFields empty Map of custom fields that are to be sent to logstash for processing
fieldNames empty Map of field name mappings if overrides are needed

dropwizard-elk-appender's People

Contributors

dependabot[bot] avatar sleberknight avatar chrisrohr avatar github-actions[bot] avatar

Stargazers

JKB avatar

Watchers

 avatar James Cloos avatar  avatar

dropwizard-elk-appender's Issues

Add badge for javadoc.io

[![javadoc](https://javadoc.io/badge2/org.kiwiproject/dropwizard-elk-appender/javadoc.svg)](https://javadoc.io/doc/org.kiwiproject/dropwizard-elk-appender)

Manage kiwi dependency version

Currently when we release retrying-again, kiwi, and kiwi-test it forces us to release all our other libraries in kiwiproject. As long as the updates to these pure utility libraries are 100% backwards compatible, then it should be safe to update them without having to update every other library.

This task is to add a dependencyManagement section to the POM to control the version of these libraries and avoid all the downstream convergence errors. It will allow us to release them on a more frequent cadence, since they are the ones that change more frequently.

io.dropwizard.logging.AppenderFactory must be renamed

io.dropwizard.logging.AppenderFactory must be renamed to io.dropwizard.logging.common.AppenderFactory to match the package structure in Dropwizard 3+

Without doing this, Dropwizard can't find the ElkAppenderFactory classs, which causes startup to fail because of a ConfigurationPartsingException caused by:

Could not resolve type id 'elk' as a subtype of `io.dropwizard.logging.common.AppenderFactory...
(more details elided)

See Upgrade Notes for Dropwizard 3.0.x

Create initial repo

Setup boilerplate project with the following:

  • README
  • travis
  • pom
  • license
  • Sonar

Add slf4j-api and logback-classic back into POM

kiwi-parent 2.0.0 removed slf4j-api and logback-classic and they are now controlled only in the BOM (kiwi-bom). So, they need to be explicitly added back to the POM, but don't need version specified. slf4j-api should be compile scope (default) and logback-classic should be test scope.

Add manual workflow to Delombok and print Java sources

This workflow will allow us to easily Delombok the code and view the resulting source code.

This will help when diagnosing CodeQL problems since it references line numbers in Delomboked source files.

The workflow should be manually triggered.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.