Discrepancy between Apache httpd log time and JBoss log time

Solution Verified - Updated -

Issue

In Apache httpd the %t in LogFormat is the time the request was received and the access log is written once the process has been completed. This means that in httpd the access can be logged out of order based on timestamp.

In JBoss, the access log appears to be written once the page processing is completed. Is this how JBoss writes to it's access log? Can we make JBoss writes time (%t pattern) to its access log the same way apache does?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x (JBossWeb)
    • 7.x (Undertow)
  • Red Hat JBoss Enterprise Web Server (EWS/JWS) (Tomcat)
    • 1.x
    • 2.x
    • 3.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