-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using LogglyBufferringAppender does not parse log data #29
Comments
@talhaashfaque I am expecting you are seeing one event as multiple events in Loggly dashboard. This is because loggly bulk splits the events using comma. If you send plain text events instead of JSON, separated by comma, it will work fine. @Shwetajain148 could you please look into this? |
@varshneyjayant - thanks for the quick response. It works fine if I use the following on config: Then the message in loggly looks like:
The issue occurs when I change the appender type in the config from LogglyAppender to LogglyBufferringAppender.
Changing the appender type loses the formatting of the log message. |
The main reason I am trying to use LogglyBufferringAppender is to decrease the network traffic by logging X number of logs in a go. I had a quick look at the source code: but that trailing slash looks a little odd to me... Kindly confirm if using the bulk mode help me achieve in decreasing the network traffic? |
I am trying to use LogglyBufferringAppender with a bufferSize=2. It's posting the data to loggly. However, the logged data is not correctly parsed.
unparsed: message:["{\"timestamp\":\"2016-12-21T15:39:23.420+11:00\",\"level\":\"INFO\",\"hostName\":\"HostName\",\"process\":\"w3wp\",\"threadName\":\"11\",\"loggerName\":\"LoggerName\",\"message\":\"log message.\",\"IPAddress\":\"::1\",\"User_ID\":1,\"MaskedSessionID\":\"*****************\",\"User\":\"Mr. XXX for test test(57237)\"}","{\"timestamp\":\"2016-12-21T15:39:23.626+11:00\",\"level\":\"INFO\",\"hostName\":\"HostName\",\"process\":\"w3wp\",\"threadName\":\"11\",\"loggerName\":\"LoggerName\",\"message\":\"log message.\",\"IPAddress\":\"::1\",\"User_ID\":1,\"MaskedSessionID\":\"*****************\",\"User\":\"Mr. XXX for test test(57237)\"}","{\"timestamp\":\"2016-12-21T15:39:34.684+11:00\",\"level\":\"INFO\",\"hostName\":\"HostName\",\"process\":\"w3wp\",\"threadName\":\"11\",\"loggerName\":\"LoggerName\",\"message\":\"log message.\",\"IPAddress\":\"::1\",\"User_ID\":1,\"MaskedSessionID\":\"*****************\",\"User\":\"Mr. XXX for test test(57237)\"}"]
I have been using LogglyAppender with no issue. The reason to use LogglyBufferringAppender is to decrease the network traffic and log 2 entries in a go.
The text was updated successfully, but these errors were encountered: