How to rotate logs in Apache HTTPD using logrotate and rotatelogs ?

Solution Verified - Updated -


  • Different ways to rotate apache logs -- rotatelogs (built into apache) or logrotate (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?


  • 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content