[Web]
采用日志轮询apache日志到2G后就无法写入日志了
我在apache里日志轮询配制如下:
“
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>;s %b" common
LogFormat "%{Referer}i ->; %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log common
CustomLog "|/usr/cronolog-1.6.2/src/cronolog /home/log/%Y/%m/%d/access.log" combined
ErrorLog "|/usr/cronolog-1.6.2/src/cronolog /home/log/%Y/%m/%d/errors.log"
”
然后用AWSTAT进行日志分析,
现在在/home/log下的日志都是按年月日的目录来生成的,可是apache的目录下的access.log日志却是一直在增长,直至2G后,就无法写入日志了,请问有什么好的办法,让我的日志更好的工作,便于管理,并且不增长到2G.