Introduction:
Is there a way to retain the event logs longer than 7 days?
Question:
As we need to review the scheduler logs for problem tracing, we need to retain 6 months’ event logs in the system. Is there is any way to reconfigure the DB Maint process to keep 6 months event logs instead of only 7 days.
Environment:
For 11.3.6 Sp2 of Autosys and Above
Answer:
The event_demon and as_server logs are not deleted by DBMaint. In 11.3.6 Sp2 there is a new parm that controls when the logs are deleted in the config:
This new feature of AutoSys is set in the config file for AutoSys (Unix or Windows).
$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