Getting Data In

encoded data over tcp

shangshin
Builder

Hi I am able to send log4j log data to splunk over tcp network but the data in splunk is not human readable.(see below) This is totally different than the original log data. Can anyone shed some light on this? Thanks!

log4j.properties
log4j.rootCategory=INFO, socket
log4j.appender.socket=org.apache.log4j.net.SocketAppender
log4j.appender.socket.port=33333
log4j.appender.socket.remoteHost=myLinuxServer1

tcp:33333

\xAC\xED\x00\x5sr\x00!org.apache.log4j.spi.LoggingEvent\xF3\xF2\xB9#t\xB\xB5?\x3\x00
Z\x00\x15mdcCopyLookupRequiredZ\x00\x11ndcLookupRequiredJ\x00   timeStampL\x00\xCcategoryNamet\x00\x12Ljava/lang/String;L\x00\xClocationInfot\x00#Lorg/apache/log4j/spi/LocationInfo;L\x00\x7mdcCopyt\x00\x15Ljava/util/Hashtable;L\x00\x3ndcq\x00~\x00\x1L\x00\xFrenderedMessageq\x00~\x00\x1L\x00
Tags (3)

helge
Builder

I can only guess that the character encoding is not UTF-8. See this answer for more information.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...