Adjusting AutoSys Server logs retention period
search cancel

Adjusting AutoSys Server logs retention period

book

Article ID: 43242

calendar_today

Updated On:

Products

CA Workload Automation AE - Scheduler (AutoSys)

Issue/Introduction

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.

Environment

Workload Automation Autosys 12.x

Resolution

Retention settings for event_demon and as_server logs are controlled via the config.<instance> file. The config file is located as follows:

  • UNIX/Linux:  $AUTOUSER/config.$AUTOSERV
  • Windows:  %AUTOUSER%\config.%AUTOSERV%

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.

Additional Information

Reference the LOGROLLOVER section of the documentation for additional details/parameter settings.