How to use rotatelogs with mod_jk logs in Apache HTTPD?

Solution Verified - Updated -

Issue

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

Environment

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

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.