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, 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