3 Replies Latest reply on Dec 10, 2015 7:47 PM by hoon lee

    %D in 'access-log pattern'

    hoon lee Newbie

      I would like to add access-log pattern  '%D'(The time taken to serve the request, in microseconds.).

      But, access.log just show me just '-' instead of microseconds time.

       

      If I configure only '%D', access.log is just

      -

      -

      -

      -


      any clues are most welcome.


      <standalone-full.xml>

                  <server name="default-server">

                      <http-listener name="default" socket-binding="http" max-post-size="974247881"/>

                      <host name="default-host" alias="localhost">

                          <location name="/" handler="welcome-content"/>

                          <access-log pattern="%t %D %h %l %u %r %s %b %T" directory="${jboss.home.dir}/standalone/log" prefix="access" worker="default"/>                    

                          <filter-ref name="server-header"/>

                          <filter-ref name="x-powered-by-header"/>

                      </host>

                  </server>

       

      <standalone/log/access.log>

      10/Dec/2015:10:42:22 +0900 - 124.66.185.123 - - GET /kie-server/services/rest/server/containers/sk HTTP/1.1 401 71 -

      10/Dec/2015:10:42:22 +0900 - 124.66.185.123 - kie GET /kie-server/services/rest/server/containers/sk HTTP/1.1 200 661 -

      10/Dec/2015:10:42:24 +0900 - 124.66.185.123 - - GET /kie-server/services/rest/server/containers/sk HTTP/1.1 401 71 -

      10/Dec/2015:10:42:24 +0900 - 124.66.185.123 - kie GET /kie-server/services/rest/server/containers/sk HTTP/1.1 200 661 -

      10/Dec/2015:10:42:26 +0900 - 124.66.185.123 - - GET /kie-server/services/rest/server/containers/sk HTTP/1.1 401 71 -

      10/Dec/2015:10:42:26 +0900 - 124.66.185.123 - kie GET /kie-server/services/rest/server/containers/sk HTTP/1.1 200 661 -

      10/Dec/2015:10:42:28 +0900 - 124.66.185.123 - - GET /kie-server/services/rest/server/containers/sk HTTP/1.1 401 71 -

      10/Dec/2015:10:42:28 +0900 - 124.66.185.123 - kie GET /kie-server/services/rest/server/containers/sk HTTP/1.1 200 661 -