Rotate/rollover, automatically delete/manage access logs written by AEWS
search cancel

Rotate/rollover, automatically delete/manage access logs written by AEWS

book

Article ID: 431645

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

AEWS access logs are in the format  waae_webservices_access_log.2026-02-26.log.   These logs are normally not deleted/archived and they could potentially exist for ever.

Is there a way to configure Log Rollover settings, so only the last 30 (days) are kept.

Cause

This happens because of the default logging for Access Log by Tomcat.

$AUTOUSER/webserver/conf/server.xml:

  <!-- 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.PRD/out" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="waae_webservices_access_log" suffix=".log"/>

 

Resolution

  • Change the above pattern to below, so only the past 30 days of  waae_webservices_access_log logs are kept and anything older than that are deleted (maxDays=30)

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="/opt/CA/WorkloadAutomationAE/autouser.PRD/out" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="waae_webservices_access_log" suffix=".log" fileDateFormat="yyyy-MM-dd" maxDays="30" />

  • Restart the web server for the changes to be effective