-
1. Re: Access log for Jboss AS
visolvejboss Sep 28, 2006 4:38 AM (in response to jbchurn)Hello,
If i have understand it correctly, you are looking for server.log file. JBoss creates this log file inside <JBOSS_HOME>/server/<configuration-type>/log/server.log directory -
2. Re: Access log for Jboss AS
jaikiran Sep 28, 2006 5:09 AM (in response to jbchurn)I guess what jbchurn is looking for is the "localhost_accessxxx.log" files that get created in the %JBOSS_HOME%/server/default/log directory.
The contents will be similar to:127.0.0.1 - admin [12/Apr/2006:18:04:37 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:04:37 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:05:07 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:05:07 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:05:37 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:05:37 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:06:08 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:06:08 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:06:38 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:06:38 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:07:08 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:07:08 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:07:38 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:07:38 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:08:08 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:08:08 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:08:38 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:08:38 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:09:08 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:09:08 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - admin [12/Apr/2006:18:09:39 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 200 442 127.0.0.1 - - [12/Apr/2006:18:09:39 +0530] "GET /myApp/myApp/script/resource_en.js HTTP/1.1" 304 - 127.0.0.1 - - [12/Apr/2006:18:10:09 +0530] "GET /myApp/myApp/jsp/framework/notificationCounter.jsp?message=Notifications HTTP/1.1" 500 848
The file name for these log files is mentioned in the jboss-service.xml present in %JBOSS_HOME%/server/default/deploy/jbossweb-tomcatxxx.sar/META-INF folder:<Valve className="org.apache.catalina.valves.AccessLogValve" prefix="localhost_access" suffix=".log" pattern="common" directory="${jboss.server.home.dir}/log"/>
-
3. Re: Access log for Jboss AS
jbchurn Sep 28, 2006 9:50 PM (in response to jbchurn)Hi,
that's right, i'm looking for localhost_accessxxx.log.
Jaikiran, do you mean i have to add in the entry from what you provided in the jboss-service.xml in order to get the log?
Just an extra question to ask you, if i'm not using jboss, but Apache tomcat alone, where should I look for the localhost_accessxxx.log?
Thank you. -
4. Re: Access log for Jboss AS
jaikiran Sep 30, 2006 10:07 AM (in response to jbchurn)You dont have to add that entry. Its already there in that file.
As far as standalone tomcat is concerned, i think the logs will be available in catalina_log.log file, but i am not very sure as i havent worked much with tomcat -
5. Re: Access log for Jboss AS
grahambrown11 Oct 5, 2006 10:33 AM (in response to jbchurn)If you are useing JBoss 4 and up
the <Valve ...> entry is now found in
<JBOSS_HOME>/server/<configuration-type>/jbossweb-tomcatxx.sar/server.xml