I am finding that the logging produced is very complex to manage. I would like to add logstash json_event ( https://github.com/logstash/log4j-jsonevent-layout). Any comments before I start?
In my environment I'm using fluent-bit, others are using logstash. Its inconvenient to have multi-line log messages, or have to fish through exceptions. Is there any other way to achieve? Some have suggested e.g. log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.encoding=UTF-8 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern={"level":"%p","timestamp":"%d{ISO8601}","thread":"%t","file":"%F", "line":"%L","message":"%m"}%n but this won't work if there's a quote or newline.