How to change the time format of access log in JBoss EAP 6?
Issue
- The access log is configured as documented here. In Jboss EAP with the below configuration:
<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>
<virtual-server name="default-host" enable-welcome-root="false">
<access-log pattern="%{Client-IP}i %h %l %u %t %{yyyy-MM-dd}t "%r" %s %b %D %{clicktrack}c %{UNIQUE_ID}i"/>
</virtual-server>
</subsystem>
I get this log:
10.1.10.53 10.1.42.50 - - [08/Sep/2015:19:27:56 +0200] ??? "GET /combo/?browserId=firefox&minifierType=&languageId=en_US&b=6203&t=1441615402000&/html/js/aui/event-move/event-move-min.js HTTP/1.1" 200 1509 5 10.1.104.10.1441728022016199 Ve8anAoBaBUAAIggHSUAAAAO
Where ??? is the unmatched time format. In Tomcat 7, this pattern works. How can I obtain ISO or another timeformat for <access-log> in JBoss EAP 6?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.