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