When I use Codec plugins of multiline through TCP Input plugins to receive date from org.apache.log4j.net.SocketAppender(Log4j 1.x ) ,what charset of Codec plugins of multiline should be set?

The log is that
"Received an event that has a different character encoding than you configured {:text=>"\xAC\xED\u0000\u0005sr\u0000!org.apache.log4j.spi.LoggingEvent\xF3\xF2\xB9#t\v\xB5?\u0003\u0000\nZ\u0000\u0015mdcCopyLookupRequiredZ\u0000\u0011ndcLookupRequiredJ\u0000\ttimeStampL\u0000\fcategoryNamet\u0000\u0012Ljava/lang/String;L\u0000\flocationInfot\u0000#Lorg/apache/log4j/spi/LocationInfo;L\u0000\amdcCopyt\u0000\u0015Ljava/util/Hashtable;L\u0000\u0003ndcq\u0000~\u0000\u0001L\u0000\u000FrenderedMessageq\u0000~\u0000\u0001L\u0000\nthreadNameq\u0000~\u0000\u0001L\u0000\rthrowableInfot\u0000+Lorg/apache/log4j/spi/ThrowableInformation;xp\u0000\u0000\u0000\u0000\u0001X\xE9\xF5ҙt\u0000\u0017log4jtest.log4jtest_oldsr\u0000!org.apache.log4j.spi.LocationInfo홻\xE1J\x91\xA5|\u0002\u0000\u0001L\u0000\bfullInfoq\u0000~\u0000\u0001xpt\u00003log4jtest.log4jtest_old.main(log4jtest_old.java:46)ppt\u0000\u0000t\u0000\u0004mainsr\u0000)org.apache.log4j.spi.ThrowableInformation\xBE\u0018\xFE\xE0\x81r\u000FQ\u0002\u0000\u0001[\u0000\u0003rept\u0000\u0013[Ljava/lang/String;xpur\u0000\u0013[Ljava.lang.String;\xAD\xD2V\xE7\xE9\u001D{G\u0002\u0000\u0000xp\u0000\u0000\u0000\u0003t\u0000\u001Ejava.lang.NullPointerExceptiont\u00000\tat errorlog4j.logtest.caculate(logtest.java:13)t\u00007\tat log4jtest.log4jtest_old.main(log4jtest_old.java:36)w\u0004\u0000\u0000\x9C@pxy", :expected_charset=>"UTF-8"}

"

Use a log4j input to receive events from a SocketAppender. Do not use a tcp input.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.