Giter Club home page Giter Club logo

logback-awslogs-json-encoder's Introduction

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Oliver Siegmar

Linkedin Badge XING Badge

logback-awslogs-json-encoder's People

Contributors

osiegmar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

logback-awslogs-json-encoder's Issues

License question

Howdy,

Is there a good reason why is this not open sourced under Apache 2.0 license?

Thanks!

Feature request: microsecond granularity timestamp

Logback only supports logging timestamp granularity of milliseconds, but you can log easily log multiple statements within the same millisecond which makes proper sorting problematic when searching the logs in aws logs insights.

I suggest a feature that will add a secondary timestamp field with micro or nanosecond precision to make sorting the log entries possible in logs insights.

It could be as simple as .appendToJSON("timestampNano", System.nanoTime()) to AwsJsonLogEncoder.encode.

What do you think?

Don't use ConsoleAppender

We've been testing with ConsoleAppender (stdout) to write to the awslogs logging driver with a fairly decent logging load and we've been hitting some serious drawbacks:

  • Really long lines hang the awslogs driver (a few KB)
  • Characters get lost sporadically / overall data loss
  • Throttling

We've been tuning the awslogs logging options:

  • blocking vs non-blocking delivery mode
  • ringbuffer size tuning
  • timestamp format

Nothing that we tried could give us stable logs with ConsoleAppender.

Then we tried another appender that communicates directly with the AWS Cloudwatch API for PutLog events: https://github.com/pierredavidbelanger/logback-awslogs-appender

Instantly our issues were gone. Logging is super stable! Cannot recommend it more to avoid ConsoleAppender!

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.