[ 
https://issues.apache.org/jira/browse/LOG4J2-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Gregory closed LOG4J2-1968.
--------------------------------
       Resolution: Duplicate
    Fix Version/s: 2.9

This issue is a duplicate of [LOG4J2-1854].

Please try a 2.9-SNAPSHOT for this feature.

> GelfLayout/SocketAppender does document "includeNullDelimiter" to append the 
> frame delimiter null byte when using TCP
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-1968
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1968
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders, Layouts
>    Affects Versions: 2.8, 2.8.2
>            Reporter: Peter Lauko
>             Fix For: 2.9
>
>
> Hi,
> According to GELF specification, when using TCP protocol a '\0' null byte 
> must be appended at the end of message as frame delimiter.
> http://docs.graylog.org/en/latest/pages/gelf.html#gelf
> Using below config  messages do not appear in Graylog.
> Everything is fine when using UDP, or when using GELF appender 
> (https://github.com/graylog-labs/log4j2-gelf), so logging config itself is ok.
> I can see the packets in Wireshark, only Graylog ignores them.
> {code:xml}
>         <Socket name="SocketTcp" protocol="TCP" 
> host="dit17mpc029.dorsum.intra" port="12201" ignoreExceptions="false">
>             <GelfLayout host="jenkins-sock-tcp" compressionType="OFF"/>
>         </Socket>
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to