In the default configuration, most RWP log files are piped to the
rotatelogs program,
which periodically creates a new log file. The following line (which has been
split into two lines to fit on the page) uses
rotatelogs to
create a new copy of the
accesserror.log file every 86,400
seconds (24 hours).
CustomLog "|\"/opt/rational/common/rwp/IHS/bin/rotatelogs.exe\"
\"/opt/rational/common/rwp/IHS/logs/access.log\" 86400" common
The log rotation period begins when RWP is started.
For every application, except ClearCase, IHS log files accumulate over
time, so you must clean them periodically. ClearCase automatically deletes
the old logs during the ClearCase weekly log scrubbing job, removing all RWP
log files that are more than 30 days old. You can modify this job to change
the frequency with which the job runs, the age of the log files it removes,
or any other aspect of its operation.
Note: If you change any of the default RWP log locations, you must also
modify the cleanuplogsscript so that it looks for these
logs in their new location.
On RWP hosts that do not have
Rational® ClearCase® installed,
you must periodically run one of the following programs to remove old log
files:
- On Linux and the UNIX system, the shell script cleanuplogs,
located in the RWP bin directory
- On Windows, the perl script cleanuplogs.pl, located
in the RWP bin directory.
Use a scheduled-execution program supplied by the operating
system (cron, for example, on UNIX, or at on
Windows) to run these scripts, or run them manually.