logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex O'Ree" <alexo...@apache.org>
Subject syslog appender and the structured data elements
Date Wed, 01 May 2019 22:58:36 GMT
So i'm digging deep into syslog and trying to get log4j2's syslog appender
to send structured data elements, such as the mdcid, id and
enterpriseNumber with logging messages and I have been unable to get it to
be sent. Is there some kind of setting that's not obvious from the docs in
order to enable this? My xml config is similar to the following

<Configuration status="trace">
<Syslog name="rfc5424" format="RFC5424" host="localhost" port="514"
protocol="UDP" mdcId="mcd" enterpriseNumber="18060"
includeMDC="true" newLine="true" messageId="Audit" id="user@domain.com" />
<Root level="info"><AppenderRef ref="rfc5424"/></Root>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message