cp-docker-images icon indicating copy to clipboard operation
cp-docker-images copied to clipboard

Log with JSON

Open hakamairi opened this issue 7 years ago • 0 comments

Hi, This might be a noob issue, but I haven't found a way to deal with this yet.

I need to log using JSON, while graylog2 breaks every line to separate messages.

I would normally use an appender net.logstash.logback.encoder.LogstashEncoder, but for that I need an additional dependency in POM. (also this would probably not work as you are using log4j not logback)

Is there some clever way to deal with this only in Docker?

hakamairi avatar Aug 16 '17 10:08 hakamairi