How to enable access log in Apache Tomcat?

Solution Verified - Updated -

Issue

  • How to enable access log in Apache Tomcat?
  • How to customize the access log format?
  • How to enable friendly access log times in Apache Tomcat?

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Enterprise Web Server (EWS)
  • Red Hat JBoss Web Server (JWS)
  • Apache Tomcat
    • 6.x
    • 7.x
    • 8.x
    • 9.x

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