Apache's error_logs piped to rotatelogs are not being rotated properly based upon file size

Solution Verified - Updated -

Issue

  • We've configured our Apache error_log for rotation thorugh rotatelogs based upon file size, for example:
ErrorLog "|/jboss-ews/httpd/sbin/rotatelogs /jboss-ews/httpd/logs/error_log.%Y-%m-%d 1M"
  • This does not appear to rotate the file properly though. We see that the same error_file continues to be written to well past the specified 1M threshold.

Environment

  • Red Hat Enterprise Linux (RHEL)
  • JBoss Enterprise Web Server (EWS)
    • Apache 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