iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—522659-001
7-23
Rotating Log Files
Rotating Log Files
As the server log files grow in size, you will eventually need to 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 httpd.config. The rollover script saves current log files and
causes the iTP Secure WebServer to begin writing to new ones; the iTP Secure
WebServer continues operation. You run the rollover script from the
/usr/tandem/webserver/conf directory as follows:
: cd /usr/tandem/webserver/conf
: ./rollover
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 as follows:
: cd /usr/tandem/webserver/conf
: ./rollstarth
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.
Table 7-1. Required Log-File Space
Requests/Day Access Log Size Error Log Size Extended Log Size
5,000 488K 98K 732K
10,000 976K 195K 1.5 Mb
20,000 1.9 Mb 0.4 Mb 3.0 Mb
50,000 4.8 Mb 1.0 Mb 7.2 Mb
100,000 9.7 Mb 1.9 Mb 14.5 Mb
200,000 19.0 Mb 3.8 Mb 28.5 Mb
500,000 48.0 Mb 9.6 Mb 72.0 Mb
1,000,000 97.0 Mb 19.4 Mb 145.5 Mb