Coder Social home page Coder Social logo

Comments (6)

MusikPolice avatar MusikPolice commented on April 25, 2024

On further inspection of the POST request content body in a hex editor, I can see that there is no newline character between the JSON log event objects.

For example, given the two log event objects {"foo": "bar"}{"hello": "world"} in ASCII, the associated hex that is generated by the encoder would be 7b 22 66 6f 6f 22 3a 20 22 62 61 72 22 7d 7b 22 68 65 6c 6c 6f 22 3a 20 22 77 6f 72 6c 64 22 7d.

Note that in the example above, the { character is denoted by the hex code 7b and the } character is denoted by the hex code 7d. You can see that the 14th and 15th characters in the hex string are 7d and 7b respectively, indicating that there is no newline character being printed between them.

This is the bug that is causing Loggly to interpret all JSON events as a single event.

from logback-extensions.

MusikPolice avatar MusikPolice commented on April 25, 2024

I got a bulk request to work with a REST debugging tool. It looks like the hex character that Loggly expects in between each log entry JSON object is 0A, which http://www.asciitable.com/ refers to as NL line feed, new Line.

from logback-extensions.

MusikPolice avatar MusikPolice commented on April 25, 2024

I have created pull request #21 to resolve this issue. Please let me know if there is anything further that is required before this patch can be accepted into the mainline.

from logback-extensions.

tony19 avatar tony19 commented on April 25, 2024

Fixed in 56de824

from logback-extensions.

pathikrit avatar pathikrit commented on April 25, 2024

Can we release this as 0.1.3 to maven? I believe Maven still has the old buggy 0.1.2 only: http://mvnrepository.com/artifact/org.logback-extensions/logback-ext-loggly

from logback-extensions.

tony19 avatar tony19 commented on April 25, 2024

@pathikrit 0.1.3 should be available now via Maven Central. The search interface may take a few hours to index the new version.

from logback-extensions.

Related Issues (20)

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.