/var/log/httpd/access_log { missingok daily rotate 4 nodateext postrotate /sbin/service httpd graceful > /dev/null || true year=`date +%Y` month=`date +%m` day=`date +%d` destdir="/var/log/%PROJECT_NAME%/$year/$month" destfile="http_combined_$year$month$day.log" mkdir -p $destdir cp /var/log/httpd/access_log.1 $destdir/$destfile endscript } /var/log/httpd/vhosts-access_log { missingok daily rotate 4 nodateext postrotate /sbin/service httpd graceful > /dev/null || true year=`date +%Y` month=`date +%m` day=`date +%d` #server=`hostname` destdir="/var/log/%PROJECT_NAME%/$year/$month" destfile="vhosts-access_$year$month$day.log" mkdir -p $destdir cp /var/log/httpd/vhosts-access_log.1 $destdir/$destfile endscript } /var/log/httpd/error_log { missingok daily rotate 4 postrotate /sbin/service httpd graceful > /dev/null || true endscript } /var/log/httpd/svn_log { missingok daily rotate 4 nodateext postrotate /sbin/service httpd graceful > /dev/null || true year=`date +%Y` month=`date +%m` day=`date +%d` #server=`hostname` destdir="/var/log/%PROJECT_NAME%/$year/$month" destfile="svn_$year$month$day.log" mkdir -p $destdir cp /var/log/httpd/svn_log.1 $destdir/$destfile endscript }