GeoServer uses log4j2 - so yes you can define a logging profile (added to
GEOSERVER_DATA_DIR/logs and select it in global settings.

A wide range of logging options are available including json:

   - https://logging.apache.org/log4j/2.x/manual/json-template-layout.html
    (recommended)
   - There is also an older json layout which is now deprecated


You can add that jar to your WEB-INF/libs folder and then writing the
configuration they describe ...

Or if you are kind you can make a pull request adding the dependency to
pom.xml and include the logging profile for everyone to enjoy.

--
Jody Garnett


On Jun 7, 2024 at 6:57:24 AM, "Bot, Theo (RWS CIV) via Geoserver-users" <
geoserver-users@lists.sourceforge.net> wrote:

> Hi,
>
>
>
> We do have a geoserver running in our kubernetes cluster. I was wondering
> if it was possible to change the log format into json. It would be much
> easier for our log processors.
>
>
>
> *Met vriendelijke groet/ Kind regards,*
>
>
>
> *Theo Bot*
>
>
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to