iTP Secure WebServer System Administrators Guide (Version 7.5+)
Table 10 Required Log-File Space (continued)
Extended Log SizeError Log SizeAccess Log SizeRequests/Day
72.0 Mb9.6 Mb48.0 Mb500,000
145.5 Mb19.4 Mb97.0 Mb1,000,000
Rotating Log Files
As the serverlog files grow in size, you will eventually must rotate to new ones: that is, either archive
or delete the old files (depending on your policy) and create new files. There are a number of
ways you can automatically save current log files and have iTP Secure WebServer begin logging
to new files.
Using the rollover and rollstarth Scripts to Rotate Log Files
You can use the rollover or the rollstarth script to rotate the log files of the iTP Secure
WebServer specified in the httpd.config file. The rollover script saves the 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 “Managing the iTP Secure WebServer Using Scripts” (page 82). Run the rollstarth script:
: cd /usr/tandem/webserver/conf
: ./rollstarth
Additionally, iTP Secure WebServer provides a configuration parameter “AutomatedLogRolloverSize”
(page 206) 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
110 Configuring the iTP Secure WebServer










