Skip to content

Serverconfigs

Mario Trojan edited this page Jan 29, 2024 · 6 revisions

Tomcat / Logrotate

  • /etc/tomcat9/server.xml: Search for <Valve className="org.apache.catalina.valves.AccessLogValve"... => Add maxDays="90"
  • /etc/tomcat9/logging.properties: If you ever need a different setting than 90, you also have to change it there
  • /etc/logrotate.d/tomcat9: There are default settings for catalina.out => weekly + rotate 52. If we want to have this similar to the own tomcat-managed settings we should set it to daily + rotate 90.
Clone this wiki locally