-
1. Re: how to view access logs
rmody Jul 4, 2012 3:04 AM (in response to metal.carratt)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" /> </access-log> </virtual-server> </subsystem>
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
-
2. Re: how to view access logs
metal.carratt Jul 1, 2012 5:19 PM (in response to rmody)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?)