Logrotate

From FVue
Jump to: navigation, search

See: https://superuser.com/questions/255951/logrotate-configuration-file-syntax-multiple-wildcard-entries-possible

Multiple files can be specified on separate lines:

/var/log/httpd/access.log
/var/log/httpd/error.log
/var/log/httpd/mysite/*.log
{
    rotate 5
    mail nobody@example.org
    size 100k
    sharedscripts
    postrotate
        /usr/bin/killall -HUP httpd
    endscript
}

You can test your file without performing the actual rotations by doing this:

logrotate -d -f /etc/logrotate.conf