Is there a way to retain Autosys server logs for more than 7 days?
search cancel

Is there a way to retain Autosys server logs for more than 7 days?

book

Article ID: 43242

calendar_today

Updated On:

Products

CA Workload Automation AE - Scheduler (AutoSys)

Issue/Introduction

Is there a way to retain the Autosys server side logs for more than 7 days?

 

 

Environment

Workload Automation Autosys 12.x

Cause

Retention settings for event_demon and as_server logs are available via the config.<instance.  file: 

$AUTOUSER/config.$AUTOSER (unix / linux) or %AUTOUSER%\config.%AUTOSERV% (Windows) 

 

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. 

LOGROLLOVER=MIDNIGHT

 

Resolution

Uncomment the PURGE setting in the config file to a value that you want and then restart scheduler/as_server for the change to be effective.

PURGE=60

 

The above will preserve logs for the past 60 days. 

 

Make sure enough disk space is available on the disk/mount where the log folder is