Helpful Information
 
 
Category: Account Maintenance
logrotate.conf confirmation

Would like to confirm wheter if the command below is right & a question

Currently there's 2 sites on the same vps so the i've set it to rotate on monthly basis.

errors technical@abc.com

/var/log/httpd/access_log {
monthly
rotate 5
copytruncate
compress
missingok
errors technical@abc.com
}
/var/log/httpd/error_log {
monthly
rotate 5
copytruncate
compress
missingok
postrotate

}

/var/log/httpd/efg.log {
monthly
rotate 5
copytruncate
compress
missingok
errors technical@abc.com

}
/var/log/httpd/efg-error.log {
monthly
rotate 5
copytruncate
compress
missingok
postrotate
kill -HUP `cat /var/run/httpd.pid`
endscript
}

include /etc/logrotate.d

After it's gzip can I also delete the zipped log in the log folder ?










privacy (GDPR)