0

How to move the rotated log into custom directory using logrotate

How to move the rotated log into the custom directory using logrotate?

Logrotate Add a comment
vertonskjelvic
asked Oct 11 2019

Answer

0

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
}
Add a comment
linuxhelp
asked Oct 11 2019
Post your Answer