Jetty access.log not filling after moving from 12.0.18 to 12.0.23
Paul B. Henson
henson at acm.org
Thu Jul 10 20:13:04 UTC 2025
On Thu, Jul 10, 2025 at 06:43:41PM +0000, Cantor, Scott via users wrote:
> I'm on an older version so I have not run into the issue yet, but I'd
> not be shocked to find out they broke it.
I'm running 12.0.22 currently, with 12.0.23 scheduled to be installed
automatically tonight on dev systems. I went ahead and pushed it out
manually to one of them and as far as I can tell my access logs are
still working fine.
In /var/lib/jetty/resources/logback.xml I've got:
<appender name="jetty-access"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/var/log/jetty/access.log</file>
<rollingPolicy
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${jetty.base}/logs/access-%d{yyyy-MM-dd}.log.gz</fileNamePattern>
<maxHistory>90</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
<logger name="org.eclipse.jetty.server.RequestLog" level="INFO"
additivity="false">
<appender-ref ref="jetty-access" />
</logger>
Then in /var/lib/jetty/etc/jetty-requestlog.xml I've got:
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- =========================================================== -->
<!-- Configure Request Log for Server -->
<!-- Use RequestLogHandler for a context specific RequestLog -->
<!-- =========================================================== -->
<Set name="RequestLog">
<New id="RequestLog"
class="org.eclipse.jetty.server.CustomRequestLog">
<!-- Writer -->
<Arg>
<New class="org.eclipse.jetty.server.Slf4jRequestLogWriter" />
</Arg>
<!-- Format String -->
<Arg>
<Property name="jetty.requestlog.formatString"
deprecated="jetty.customrequestlog.formatString">
<Default>
<Get class="org.eclipse.jetty.server.CustomRequestLog"
name="EXTENDED_NCSA_FORMAT"/>
</Default>
</Property>
</Arg>
</New>
</Set>
</Configure>
Finally in /var/lib/jetty/start.d/logging-logback.ini I have:
--modules=logging-logback
slf4j.version=system
logback.version=system
# Route request logging through standard logging API
etc/jetty-requestlog.xml
The logback jar used by the idp is version 1.5.6, but the one being used
by jetty itself is 1.5.3...
More information about the users
mailing list