Greetings,

You could also use the Tomcat OTEL agent.
I did some PoC and seemed to work fine.
You can find tutorials from specific platforms, but the OTEL agent works
with all compliant ones.

https://uptrace.dev/get/monitor/opentelemetry-tomcat.html
https://signoz.io/opentelemetry/tomcat/

Available exporters
```
export OTEL_TRACES_EXPORTER=otlp

export OTEL_METRICS_EXPORTER=otlpexport OTEL_LOGS_EXPORTER=otlp
```


Regards,
Dimitris

Στις Παρ 7 Ιουν 2024 στις 11:56 μ.μ., ο/η Jody Garnett <
jody.garn...@gmail.com> έγραψε:

> 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
>
_______________________________________________
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