Total Pageviews

Sunday, April 1, 2018

manual log rotation process



OS level command to rotate logfiles.



Please find below the logrotate file for the web policy agents in PROD environment:

/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
    endscript
}

No comments:

Post a Comment