0

How to move the rotated log into custom directory using logrotate

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

vertonskjelvic
asked Oct 11, 2019
1 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
}
View More
linuxhelp
answered Oct 11, 2019
Your Answer
||||
x
 
100:0

Related Tutorials in How to move the rotated log into custom directory using logrotate

Related Tutorials in How to move the rotated log into custom directory using logrotate

Related Forums in How to move the rotated log into custom directory using logrotate

Related Forums in How to move the rotated log into custom directory using logrotate