By default, the AutoSys application logs (event.demon and as_server) logs are purged after 7 days. There is a business requirement to increase this to 60 or 90 days.
This article explains how to accomplish this requirement.
Workload Automation Autosys 12.x
Retention settings for event_demon and as_server logs are controlled via the config.<instance> file. The config file is located as follows:
There is a section in the config file using PURGE.
#+----------
#
# Keyword: LOGROLLOVER=<value>
#
# Specify when to roll over the Scheduler and Application Server
# log file.
#
# Valid values are:
#
# OFF = Do not roll over the log file.
# MIDNIGHT = Roll over the log file at midnight.
# SIZE(n) = Roll over the log file when it becomes
# larger than the value specified in number
# of megabytes.
# PURGE(n) = Remove all the application generated log
# files older than the value specified in
# number of days.
# MIDNIGHT,SIZE(n) = Roll over the log file at midnight or when
# it becomes larger than the value specified
# in MB.
#
############## User Comments - Start. Keyword: LOGROLLOVER #################
#
#
############## User Comments - End. Keyword: LOGROLLOVER #################
LOGROLLOVER=MIDNIGHT,PURGE(7)
To increase log file retention, modify the value for the PURGE parameter.
To purge logs older than 60 days: | LOGROLLOVER=MIDNIGHT,PURGE(60) |
To purge logs older than 90 days: | LOGROLLOVER=MIDNIGHT,PURGE(90) |
Note: After making changes to config file, you must either pause and resume the scheduler/application server processes or stop and restart both the event_demon and application server services for the changes to take effect.
Reference the LOGROLLOVER section of the documentation for additional details/parameter settings.