iTP Secure WebServer System Administrator's Guide (Version 7.0)
Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—523346-012
7-25
Rotating Log Files
current log files in an archive directory called ArchiveLogs and causes the iTP
Secure WebServer to begin writing to new ones; the iTP Secure WebServer continues
the operation. The old log files will be saved with a timestamp attached to their names
when the rollover occurs.
You run the rollover script from the /usr/tandem/webserver/conf directory:
: cd /usr/tandem/webserver/conf
: ./rollover
The renamed log files will be saved to the archive directory:
/usr/tandem/webserver/logs/ArchiveLogs
The rollstarth script operates like the rollover script, but dynamically restarts
the iTP Secure WebServer so that configuration changes can take effect without the
iTP Secure WebServer being brought down. The types of configuration changes that
can be introduced dynamically are described in Section 6, Managing the iTP Secure
WebServer Using Scripts. Run the rollstarth script:
: cd /usr/tandem/webserver/conf
: ./rollstarth
Additionally, iTP Secure WebServer provides a configuration parameter
AutomatedLogRolloverSize to enable/disable automated log file rollover. This
default value of this configuration parameter will be -1.
If the AutomatedLogRolloverSize configuration parameter is greater than zero,
iTP Secure WebServer automatically rollsover log files when any of the log file reach
the size limit defined by the AutomatedLogRolloverSize parameter in the
httpd.config file and saves the current log files in an archive directory. When any
one of the log files reaches the threshold limit, all the three log files namely, access log,
error log, and extended log are rolled over.
Using the httpd command to Rotate Log Files
If your server uses a different configuration file, you can use the httpd command with
the -rollover argument to automatically rotate log files. The -rollover argument
causes httpd to save the current log files for the specified server and to start writing
to new files. It can be used in several ways.
For example, the following command:
: httpd -rollover configfile_name
saves current log files and starts new ones without bringing down the server. If the log
file names have been changed in the configuration file, the server continues to use the
old names.
The following command:
: httpd -start -rollover configfile_name