To enable JSON logging, the applications must be run with the json-logs Spring profile.
The default configuration in the Docker images at /etc/geoserver/ include logback and rabbitmq config files for JSON logging:
logback-spring.xml defines a logstash compatible JSON console appender for spring boot apps. This default file is identical to the one included in the applications classpath already. In order to use this one, for example, may it require some tunning, the application must be run with -Dlogging.config=file:/etc/geoserver/logback-spring.xml, or any other location where the xml config file is placed.
A sample rabbitmq.conf file declaring console json logging output for rabbitmq. Must be mounted at /etc/rabbitmq/rabbitmq.conf, or use it as a guideline to enhance rabbitmq's configuration.
To enable JSON logging, the applications must be run with the
json-logs
Spring profile.The default configuration in the Docker images at
/etc/geoserver/
include logback and rabbitmq config files for JSON logging:logback-spring.xml
defines a logstash compatible JSON console appender for spring boot apps. This default file is identical to the one included in the applications classpath already. In order to use this one, for example, may it require some tunning, the application must be run with-Dlogging.config=file:/etc/geoserver/logback-spring.xml
, or any other location where the xml config file is placed.rabbitmq.conf
file declaring console json logging output for rabbitmq. Must be mounted at/etc/rabbitmq/rabbitmq.conf
, or use it as a guideline to enhance rabbitmq's configuration.