Comments (6)
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.
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.
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.
Fixed in 56de824
from logback-extensions.
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.
@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)
- Cannot load LogbackConfigListener on JDK 6 HOT 7
- possible reload issue
- if WebLogbackConfigurer use ServletContextPropertyUtils like Log4jWebConfigurer to resolvePlaceholders is better HOT 4
- Improve your wiki HOT 2
- RollingFileAppender not working HOT 1
- Using Async Mode HOT 1
- Failed to instantiate type ch.qos.logback.ext.loggly.LogglyAppender in Android HOT 5
- Bulk upload issue with loggly appender HOT 2
- Could logback configuration file use properties resolved by spring?
- Configuration locations for Spring do not allow missing for file URLs
- Getting LogglyAppender client-side exception while using loggly Bulk mode.
- LogglyBatchAppender - Every line in stack trace is going as a separate log entry. HOT 1
- RollingFileAppender throws NullPointerException
- Warning: Class 'ch.qos.logback.ext.loggly.LogglyAppender' contains multiple setters for the same property 'proxyPort'. HOT 1
- DelegatingLogbackAppender shut down too early
- %X{mdcData} not recognized in <pattern>
- Severe vulnerability requires logback version upgrade HOT 2
- Maven compile dependencies missing from pom of v0.1.5
- "Using Spring Java Config" Example in Wiki
- can't we expand log Level.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logback-extensions.