How to I rotate Tomcat's "catalina.out" file?

Solution Verified - Updated -

Issue

Tomcat's catalina.out does not rotate by default. We need it to rotate because its size is increasing to gigabytes. We don't want to nullify it at the system level as we will lose some log messages. What is the best way to implement log rotation for catalina.out file?

Environment

  • JBoss Enterprise Web Server (EWS)
    • 1.x
    • 2.x
  • JBoss Web Server (JWS)
    • 5.x

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