-
Notifications
You must be signed in to change notification settings - Fork 103
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
logstash log-courier plugin output not working properly #200
Comments
I've not seen that error before. Do you notice any specific pattern or is it completely random? |
I can see one bug here - which is the handling of the JrJackson::ParseError. But not sure why the event itself would not be valid JSON. I'll have a look further if I can but if you can get any more information that'll be great. Specific minor versions of Logstash would be useful to me also. |
Also report in JSON parse error message how many invalid character encodings were replaced to detect whether parse failure is due to that
The fix I added gracefully handles broken JSON - unless other issues become apparent it will just mean the raw JSON that failed to parse gets send through Logstash instead. Might make it easier to locate any cause if you can find that raw event in Elasticsearch. |
Hi - I had this reported again and investigated again, and found the problem. If the event contained multibyte sequences (characters with accents) in the output plugin, the protocol stream would corrupt as it was using character length instead of byte length in a few places. I'll push out 1.9 plugins shortly with fix. |
Fixes issue reported in driskell/log-courier#200 and driskell/log-courier#247
Increase log-courier gem dependency for byte/length fix Fixes driskell/log-courier#247 Fixes driskell/log-courier#200 1.9.0
Increase log-courier gem dependency for byte/length fix Fixes driskell/log-courier#247 Fixes driskell/log-courier#200 1.9.0
Also report in JSON parse error message how many invalid character encodings were replaced to detect whether parse failure is due to that
Hi Jason,
I'm back on trying to migrate my lumberjack logstash output configuration to log-courier.
I'm running logstash 1.4 on the logstash server where I have the log-courier output configured, and logsatsh 1.5 on the server where I have log-courier input.
I'm frequently seeing these errors in the logs
I can see that some log events are making it's way through both logstash servers.
The text was updated successfully, but these errors were encountered: