How to automatically purge old web server logs
Release : 12
Component : CA Workload Automation AE (AutoSys)
Configuration
We can modify the $AUTOUSER/webserver/conf/server.xml as shown below to retain rotated access logs before being deleted based on max days .
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="/opt/CA/WorkloadAutomationAE/autouser.ACE/out" pattern="%h %l %u %t "%r" %s %b" prefix="waae_webservices_access_log" maxDays="3" suffix=".log"/>
For more information please check the below link:
https://tomcat.apache.org/tomcat-8.5-doc/config/valve.html