How to use rotatelogs with mod_jk logs in Apache HTTPD?

Solution Verified - Updated -


I decided to use the rotatelogs in Apache HTTPD. I have some questions on how to rotate logs other than the access and error logs. Here is the line in httpd.conf that's not working:

CustomLog "| /apps/jboss/jws/httpd/sbin/rotatelogs /apps/jboss/jws/httpd/logs/mod_jk.log%Y.%m.%d 600" common


  • Red Hat JBoss Web Server (JWS)
    • 2.x
    • 3.0.x
  • Red Hat JBoss Core Services (JBCS)
    • 2.4.x
  • Apache HTTPD
    • 2.2.x
    • 2.4.x
  • mod_jk

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In