Code Monkey home page Code Monkey logo

errorlog-consumer's Introduction

errorlog-consumer

The purpose of this microservice is to filter all error level log statements from one or more Kafka log topics and persist them in a custom error log database.

Configuration

To be eligible for consumption a log entry must be logged with level ERROR and the logging application must define the app.dbc.dk/team label on its kubernetes pods.

Environment variables

  • KAFKA_HOSTS comma-separated list of host and port pairs that are the addresses of the Kafka brokers.
  • KAFKA_TOPICS comma-separated list of names of topics to be consumed.
  • KAFKA_GROUP_ID name of the consumer group this consumer belongs to.
  • KAFKA_CLIENT_ID identifier of a consumer that is passed to a Kafka broker with every request, with the sole purpose of being able to track the source of requests in the brokers.
  • NUM_WORKERS number of pooled MDBs handling incoming messages (in case the 32 default is not enough).
  • ERRORLOG_DB database URL (USER:PASSWORD@HOST:PORT/DBNAME) of the underlying errorlog store.

Development

Requirements

To build this project JDK 1.8 and Apache Maven is required.

To start a local instance, docker is required.

Scripts

  • clean - clears build artifacts
  • build - builds artifacts
  • test - runs unit and integration tests
  • validate - analyzes source code and javadoc
  • start - starts localhost instance
  • stop - stops localhost instance
./clean && ./build && ./test && ./validate && KAFKA_HOSTS="..." KAFKA_TOPICS="..." ./start

License

Copyright Dansk Bibliotekscenter a/s. Licensed under GPLv3. See license text in LICENSE.txt

errorlog-consumer's People

Contributors

jbndbc avatar jensgroenborgandersen avatar atmdbc avatar michellyck avatar

Watchers

 avatar  avatar Hans-Henrik Lund avatar James Cloos avatar Johan Thomsen avatar Jacob Poulsen avatar Søren Vibjerg avatar  avatar Finn Stausgaard avatar  avatar Anders Vestergaard avatar  avatar  avatar

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.