![]() |
Logfile splitting |
|||||||||||||||||||||
One logfile |
Usually, httpd server are logging requests in one log file.
On NCSA or Apache server, log name is access_log On CERN server, log name is httpd-log In the config.pl file, you have to edit : $zip = 0 With traffic increase, most provider now support compressed logfile to save disk space. Some use daily compressed logile, others use monthly compressed logfiles. W3Perl is able to cope with both of them. |
|||||||||||||||||||||
Multi logfiles |
Select in the configuration file the filename log format you are using.
Log filename string can be whatever you want :
Example of supported string filename :
|
|||||||||||||||||||||
Compressed files |
A number of ISP are providing logfile in a compressed format to save space. Use $zip = 1 to tell W3Perl you are using compressed logfiles. If $zipcut is set to 1, the package will search for monthly compressed logfiles, is set to 2 in the configuration file, daily logfiles will be used. Setting this value to 3 mean you're using Apache rotation logfiles.
|
|||||||||||||||||||||
Save space |
If you are using one big logfile and want to save disk space, you can
use
squeezelog to
cut and compress the log file each month.
Compression rate is around 90% of the initial file saving a
lots of disk space. These replace the rotate-log utility provided with httpd server. If you are running IIS, using a monthly logfile would be my best choice. W3Perl will also run faster as it will have only to scan the current month logfile. You need to edit squeezelog file and configure it with your own system. The prog should be added in your crontab and executed once every first day of each month.
Example : (if the logfiles are owned by root, you should ask your administration system to install squeezelog).
|
|||||||||||||||||||||
![]() |