You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Andreas Mager (Jira)" <ji...@apache.org> on 2019/08/28 10:05:00 UTC

[jira] [Commented] (LOG4J2-2681) SocketAppender in UDP mode can't split messages

    [ https://issues.apache.org/jira/browse/LOG4J2-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16917625#comment-16917625 ] 

Andreas Mager commented on LOG4J2-2681:
---------------------------------------

The network traffic in UDP and TCP is the same.  rsyslog changes the behavior of handling the log message in the different Protocolls.
In UDP new lines will be replaced by #012. In TCP new lines generate a new log record.
 

> SocketAppender in UDP mode can't split messages
> -----------------------------------------------
>
>                 Key: LOG4J2-2681
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2681
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.11.2
>            Reporter: Andreas Mager
>            Priority: Major
>
> We are using rsyslog wit udp.
> There is a problem with messages that exceed 64k size.
> The default TCP mode sends a new record when a new line symbol occurs.
> The UDP mode doesn't. 
> There is no possibility in UDP to split the message in parts. 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)