I’ve been searching for an answer to multi-line Java stack traces in GrayLog and I have not been able to find a workable solution to my problem. I’ve updated log4j2 in my Spring Boot app to insert a
\n character instead of a new line in my stack traces. With this, I get one message logged in GrayLog but the message is displayed as one big blob of text, this is what is displayed in the
tomcat1.test - 2018-01-30 18:30:05.406 ERROR 1 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[.[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path  threw exception [Request processing failed; nested exception is java.util.NoSuchElementException: No value present] with root cause java.util.NoSuchElementException: No value present\n at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_151]\n
How do I configure GrayLog to replace the
\n in the above text with a
<br> when displaying the stack trace?
Thanks for your help.