
vertonskjelvic
asked Oct 11 2019
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
}

linuxhelp
asked Oct 11 2019
How to move the rotated log into custom directory using logrotate
How to move the rotated log into the custom directory using logrotate?