I’m looking to find out if this problem has been encountered and has a known solution, but it’s hard to search for given the common keywords.
We’ve set up a log forwarding whereby we essentially tail the log file and send that off to a server for storage etc.
The problem arises when stack traces for errors are broken across multiple lines and other properties are repeated for each line. As a result tailing the file results in 10+ messages per entry, the vast majority of which are a single line from the middle of a stack trace. This creates a lot of overhead, makes the logs impossible to parse effectively and just generally sucks.
Intuitively I expect that the underlying Java is sending messages individually, and I simply need to find a way to configure the Logback and Log4J I see referenced in the conf directory to remove newlines or replace them with something suitable.
My hope is that someone here has seen this before and can offer a solution before I have to dive into Logback and try to quickly learn how to stem the tide before the team receiving the logs cut me off.