-
Notifications
You must be signed in to change notification settings - Fork 88
Description
In order to make Jenkins logs easier to ingest, we'd like to support using custom log formatters, such as the Elastic Common Schema (ECS) formatter (https://github.com/elastic/ecs-logging-java)
As discussed in jenkinsci/docker#1105 there's currently no support for this in Winstone, so we have to patch the `run.sh` script to use the `-cp` java option rather than using the `-jar` option, as they're mutually exclusive...
I did try the `-extraLibFolder` arg as referenced in the above issue, but the formatter doesn't get picked up...
Originally reported by
fatmcgav, imported from: Support custom java.util.logging formatters
- status: Open
- priority: Minor
- component(s): winstone-jetty
- resolution: Unresolved
- votes: 0
- watchers: 1
- imported: 2025-11-27
Raw content of original issue
In order to make Jenkins logs easier to ingest, we'd like to support using custom log formatters, such as the Elastic Common Schema (ECS) formatter (https://github.com/elastic/ecs-logging-java)
As discussed in jenkinsci/docker#1105 there's currently no support for this in Winstone, so we have to patch the `run.sh` script to use the `-cp` java option rather than using the `-jar` option, as they're mutually exclusive...
I did try the `-extraLibFolder` arg as referenced in the above issue, but the formatter doesn't get picked up...
- environment:
Jenkins 2.289.2 jdk11 docker image