Bug#845661: tomcat8: Access log file suffix doesn't match suffix in rotation cron job

Scott Ashcroft scott.ashcroft at talk21.com
Fri Nov 25 17:31:56 UTC 2016


Package: tomcat8
Version: 8.0.39-1
Severity: minor

Hi,

The default server.xml shipped with tomcat8 has an access log valve config as follows:

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
	prefix="localhost_access_log" suffix=".txt"
	pattern="%h %l %u %t "%r" %s %b" />

So files are produced in /var/log/tomcat8 with filenames like:

localhost_access_log.2016-11-25.txt

However, the log rotation script /etc/cron.daily/tomcat8 has:

LOGEXT=log

and so is looking for files which end .log.

This means the access logs are never rotated and just build up until the partition is full.

Either the rotation script needs to also match .txt files or the valve should be creating .log files.

Thanks,
Scott



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tomcat8 depends on:
ii  adduser                3.115
ii  debconf [debconf-2.0]  1.5.59
pn  tomcat8-common         <none>
ii  ucf                    3.0036

Versions of packages tomcat8 recommends:
pn  authbind  <none>

Versions of packages tomcat8 suggests:
pn  libtcnative-1     <none>
pn  tomcat8-admin     <none>
pn  tomcat8-docs      <none>
pn  tomcat8-examples  <none>
pn  tomcat8-user      <none>



More information about the pkg-java-maintainers mailing list