Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorial:adm:server_preparation [2019/03/18 15:05]
urbanl new tomcat instalation
tutorial:adm:server_preparation [2019/04/12 10:38]
fiserp [mod_deflate configuration]
Line 429: Line 429:
  
 ==== Rotating Tomcat logs ==== ==== Rotating Tomcat logs ====
-Tomcat logger appneds to the logfile at ''/var/log/tomcat/''. Tomcat also sets up logrotate at ''/etc/logrotate.d/tomcat''. Change logrotate file into following and just adjust log retention (the ''rotate COUNT'') as necessary.+Tomcat logger appneds to the logfile at ''/var/log/tomcat/''. Tomcat also sets up logrotate at ''/etc/logrotate.d/tomcat''. Change logrotate file into following and adjust log retention (the ''COUNT'') as necessary - for production deployments we recommend at least 90 days.
 <file txt tomcat> <file txt tomcat>
 /var/log/tomcat/tomcat.log /var/log/tomcat/tomcat.log
Line 469: Line 469:
 /var/log/tomcat8/host-manager.log /var/log/tomcat8/host-manager.log
 /var/log/tomcat8/catalina.out { /var/log/tomcat8/catalina.out {
-        rotate 7+        rotate COUNT
         daily         daily
         dateext         dateext
Line 792: Line 792:
         AddOutputFilterByType DEFLATE text/plain         AddOutputFilterByType DEFLATE text/plain
         AddOutputFilterByType DEFLATE text/xml         AddOutputFilterByType DEFLATE text/xml
 +        AddOutputFilterByType DEFLATE application/json
 +        AddOutputFilterByType DEFLATE application/hal+json
  
         # Remove browser bugs (only needed for really old browsers)         # Remove browser bugs (only needed for really old browsers)
  • by koulaj