-
jackson: 2.12.3 After upgrading to 7.0.1 from 5.3, I tried to use the new UDP appender for syslog based on the example here, but it is not working (even tried that exact example but same error is shown). logback.xml:
the log output:
I also tried the following, which produced no log output (so it seems as if a correct configuration):
But it does not actually work, since all I see in /var/log/messages is:
Before upgrading, when using logstash-logback-encoder 7.0.1 and logback-classic 1.2.3, this worked fine:
with output in /var/log/messages like:
Given that the exact example in the docs does not work, it looks like a bug, but I was not sure if it is. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Nikos, Thanks for the feedback. You are right, the documentation is very poor on this subject if not confusing. To start, here is a configuration that should (hopefully) produce the same results as before:
Since you are sending to a syslog server you also need a prefix with the syslog special fields in front of the JSON payload. This is done with the @philsttr probably knows more than me on this particular topic - no doubt he will correct me if I'm wrong. Any way, I hope my explanations are clear enough to help you with your upgrade to LLE 7.0.1. In any case, don't hesitate to post additional comments - we'll do our best to help you. We are well aware the configuration of the UDP appender can be confusing and not yet fully aligned with the other components of the LLE eco-system. Feedbacks like yours help us to identify the areas needing our attention. |
Beta Was this translation helpful? Give feedback.
-
So still not clear how to limit message size with UDP. All examples with encoder.. why UPD cant have it? Why it's even so tricky? Max message length is one of the commonly used parameter. |
Beta Was this translation helpful? Give feedback.
Hi Nikos,
Thanks for the feedback. You are right, the documentation is very poor on this subject if not confusing.
As you noticed, the
LogstashSocketAppender
has been removed in6.0
and the documentation isn't clear since then. In addition, the behaviour of its replacement components is slightly different which makes the transition even more tricky - sorry about that.To start, here is a configuration that should (hopefully) produce the same results as before: