a b created LOG4J2-2567:
---------------------------

             Summary: syslog appender, tcp causes 'invalid frame header', 
connection dropped with syslog-ng server
                 Key: LOG4J2-2567
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2567
             Project: Log4j 2
          Issue Type: Question
          Components: Appenders
    Affects Versions: 2.11.2
            Reporter: a b


Hi.
{code:xml}
<Appenders>
 <Syslog appName="test" connectTimeoutMillis="3000" host="127.0.0.1" 
immediateFail="true" mdcId="syslog-mdcid" name="syslog" newLine="true" 
port="7601" protocol="TCP" reconnectionDelayMillis="3000"/>
</Appenders>{code}
 

using syslog-ng (3.19.1), here's what the server prints-out:
{noformat}
[2019-03-21T11:34:26.046972] Syslog connection accepted; fd='17', 
client='AF_INET(172.17.0.1:39432)', local='AF_INET(0.0.0.0:601)'
[2019-03-21T11:34:26.066218] Invalid frame header; header=''
[2019-03-21T11:34:26.066339] Syslog connection closed; fd='17', 
client='AF_INET(172.17.0.1:39432)', local='AF_INET(0.0.0.0:601)'
{noformat}
Using
{noformat}
logger -n 127.0.0.1 -P 7601 -T --octet-count test{noformat}
works fine.

How can I configure log4j2 to send a syslog message, over non-tls TCP, to 
syslog-ng correctly?

Thanks!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to