1 Answer
Answer:
To move the rotated log into the custom directory using logrotate
Step:1
use this option in logrotate
olddir /directory
/home/test/public_html/error_log {
create 640 test test
size 10M
rotate 10
maxage 30
copytruncate
olddir /home/test/public_html/public/Log/
dateext
missingok
notifempty
compress
}
Your Answer
x