symfony1系の古いやつだとログローテーションすると新しいログが消える楽しい仕様になっているので、その前にBashで削除します。
vim delete_symfony_history_log.sh --- #!/bin/sh LOGDIR="/path/to/dir/log/history" for indexlogfile in `ls -1t ${LOGDIR} | grep index_prod | sed -e "1,9d"` do #echo "${LOGDIR}/${indexlogfile}" rm -f ${LOGDIR}/${indexlogfile} done for adminlogfile in `ls -1t ${LOGDIR} | grep admin_prod | sed -e "1,9d"` do #echo "${LOGDIR}/${adminlogfile}" rm -f ${LOGDIR}/${adminlogfile} done ---
05 4 * * * /path/to/dir/delete_symfony_history_log.sh 10 4 * * * /usr/bin/php /path/to/dir/symfony log-rotate index prod 15 4 * * * /usr/bin/php /path/to/dir/symfony log-rotate admin prod