How to rotate logs in Apache HTTPD using logrotate and rotatelogs ?
Issue
- Different ways to rotate apache logs --
rotatelogs
(built into apache) orlogrotate
(linux). Which method to use? - Does
logrotate
stop Apache or cause any issues to end users? - How to rotate
access.log
using size based? - How to achieve access log rotation?
- How to autorotate EWS logs?
Environment
- Red Hat Enterprise Linux (RHEL)
- Red Hat Software Collections (RHSCL)
- Red Hat JBoss Core Services (JBCS)
- Apache Web Server (httpd)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.