When we had Splunk processing log files, the exceptions looked fine. But now that we are processing just the STDOUT from Docker, the exception stack traces were appearing as separate log messages. I fixed that in a way, buy removing the line breaks in the message itself with a pattern in log4j. Now it want it appear as separate lines when I view the exception. Is there some character or string that I can substitute so each method in the stack trace appears as a separate line, but not a separate message?
Here is my current log4j pattern:
<Pattern>%d{ISO8601} %-5p %C{1} - [%x] %m %throwable{separator(\n)}%n</Pattern>
In Spunk it appears with a literal "\n" instead of a line break.
What is the correct Pattern I should use?
... View more