Getting Data In

Log4J SocketAppender & LoggingEvent

Saltie06
New Member

Is there a way to deserialize the LoggingEvent produced by Log4J when using the socket appender? Splunk appears to receive the messages but is unable to understand/parse them.

Tags (1)
0 Karma

willpugh
Engager

I think the Log4J SocketAppender serializes Java Objects, so to Splunk it is not a text file.

Saltie06
New Member

Well that is really my question, is there a way to deserialize the object Log4J creates (LoggingEvent) so that Splunk can read it? We're trying to avoid flat files if possible.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

provided your log events are plain text delimited by newlines, it should be fine. (other delimiters can be configured.) what exactly is failing to parse? are lines breaking? are timestamps read correctly? or is is problems with field extractions?

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...