Issue
The username is not logged when using Winstone Access Logging.
Resolution
The only way to achieve this would be by using a reverse proxy in front of Jenkins and having that provide the access logging. This would allow controlling all the logged parameters.
For example:
-
Nginx - https://www.jenkins.io/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/
-
Apache - https://www.jenkins.io/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/
-
HAProxy - https://www.jenkins.io/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.