apache
Every day ,it will create a new log file
CustomLog “|/usr/local/httpd/bin/rotatelogs /var/logs/access.log%Y%m%d 86400 480″ common
edit crontab,try to purge one weeks ago log.
find /var/log -type f ! -mtime -7 -name “access.log*” -exec rm -rf
-
Recent Posts
Archives
Links