2 Replies Latest reply on Jul 1, 2012 5:19 PM by metal.carratt

    how to view access logs

    metal.carratt Newbie

      I've seen this question numerous times for previous versions of AS but not for version 7.  How is it possible to enable access logging in JBoss AS 7.1?

      What I really want is to see the requests and responses, or at least requests, between different applications deployed on the same server, talking to each other via web service.  I don't need to see the content of the message, just like the address and port/protocol that was used..


      Can anyone help?


      Thanks in advance.

        • 1. Re: how to view access logs
          Ravish Mody Newbie

          Hi metal.carratt


          You can enable access log in JBoss A7 by adding "access-log" element in subsystem of web as shown below


                  <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
                      <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
                      <virtual-server name="default-host" enable-welcome-root="true">
                          <alias name="localhost"/>
                          <alias name="example.com"/>
                              <access-log pattern="%a %t %H %p %U %s " >
                                          <directory relative-to="jboss.server.log.dir" />


          To get more information regaring the pattern you can have a look at the link : http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access_Log_Valve/Attributes


          If you want to enable seprate access log for individual applications you can follow below link


          Topic: Fetching Client IP Address and Header information in JBoss AS7 access log

          Link: http://middlewaremagic.com/jboss/?p=500

          • 2. Re: how to view access logs
            metal.carratt Newbie

            Thanks, that works!


            Unfortunately I am still unable to see web service calls being logged (whether over http or ssl), I can only see a call to retrieve the wsdl.

            Any idea how I could get web service calls to be logged as well?

            (both the sender and receiver reside on the same server, so I don't know if that makes any difference.. whether they would just talk to each other without going out and coming back in?)