deathcult 回复于:2003-09-21 14:45:01 |
man rotatelogs |
lzv 回复于:2003-09-22 10:35:20 |
[url]http://httpd.apache.org/docs/misc/FAQ.html#rotate[/url]
The simple answer: by piping the transfer log into an appropriate log file rotation utility. The longer answer: In the src/support/ directory, you will find a utility called rotatelogs which can be used like this: TransferLog "|/path/to/rotatelogs /path/to/logs/aclearcase/" target="_blank" >ccess_log 86400" to enable daily rotation of the log files. A more sophisticated solution of a logfile rotation utility is available under the name cronolog from Andrew Ford's site at [url]http://www.cronolog.org/[/url]. It can automatically create logfile subdirectories based on time and date, and can have a constant symlink point to the rotating logfiles. (As of version 1.6.1, cronolog is available under the Apache License). Use it like this: CustomLog "|/path/to/cronolog --symlink=/usr/local/apache/logs/access_log /usr/local/apache/logs/%Y/%m/access_log" combined |
xiaoxiaoke 回复于:2004-02-15 20:50:23 |
强烈建议采用cronolog工具,可以针对不同周期来轮循,而且对webaliaze工具也支持得很好 |