Skip to content

[JENKINS-66220] Support custom java.util.logging formatters #503

@jenkins-infra-bot

Description

@jenkins-infra-bot

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions