Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
On Wed, Dec 15, 2004 at 06:33:19AM -0500, ohaya wrote: : I was wondering if it's possible to configure a standalone Tomcat to log : HTTP requests (and posts too, ideally)? If it is, how do I do this, and : where does it (Tomcat) log the output to? 1/ please post a *new* message when writing to the list. Replying to an old (unrelated) message confuses thread-aware mailers, which makes your question harder to find (and thus answer). 2/ do you mean a basic web log format, similar to Apache httpd? Look into AccessLogVale. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
1/ please post a *new* message when writing to the list. Replying to an old (unrelated) message confuses thread-aware mailers, which makes your question harder to find (and thus answer). Sorry, I couldn't remember the address and got lazy (too early in the morning :)) 2/ do you mean a basic web log format, similar to Apache httpd? Look into AccessLogVale. Yes, something like that. Did you mean AccessLogValue? I did a search on that and didn't find much, but that looks like an Apache thing? I'm running Tomcat standalone (not being front-ended with Apache). If I can configure this with standalone Tomcat, can you (or anyone else) indicate how? Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
Yes, something like that. Did you mean AccessLogValue? I did a search on that and didn't find much, but that looks like an Apache thing? I'm running Tomcat standalone (not being front-ended with Apache). In 5.0.28 the accessLogValve is already configured for you. You just need to uncommment it in your server.xml file. !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
In 5.0.28 the accessLogValve is already configured for you. You just need to uncommment it in your server.xml file. !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Ben, Thanks. Unfortunately, and I have to apologize for this omission, I forgot to mention that I'm working with Tomcat 4.1.31. Also unfortunately, that's the only version that I can work with, for some specific reasons... For V4.1.31, is there any similar capability? Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
I don't have a copy handy but did you look at the server.xml? On Wed, 2004-12-15 at 09:45, [EMAIL PROTECTED] wrote: In 5.0.28 the accessLogValve is already configured for you. You just need to uncommment it in your server.xml file. !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Ben, Thanks. Unfortunately, and I have to apologize for this omission, I forgot to mention that I'm working with Tomcat 4.1.31. Also unfortunately, that's the only version that I can work with, for some specific reasons... For V4.1.31, is there any similar capability? Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to Enable Logging HTTP Requests (Tomcat standalone)?
You need to post your tomcat version. -Original Message- From: ohaya [mailto:[EMAIL PROTECTED] Sent: December 15, 2004 6:33 AM To: Tomcat Users List Subject: How to Enable Logging HTTP Requests (Tomcat standalone)? Hi, I was wondering if it's possible to configure a standalone Tomcat to log HTTP requests (and posts too, ideally)? If it is, how do I do this, and where does it (Tomcat) log the output to? I've tried editing the Debug level in the Connector in server.xml, and then bouncing Tomcat, but that doesn't seem to do it. Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41c0242b76589695866832!
Re: Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
Ben, Thanks. Unfortunately, and I have to apologize for this omission, I forgot to mention that I'm working with Tomcat 4.1.31. Also unfortunately, that's the only version that I can work with, for some specific reasons... For V4.1.31, is there any similar capability? Jim This is from the server.xml file in 4.1.24: !-- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Enable Logging HTTP Requests (Tomcat standalone)?
Ben Souther wrote: Ben, Thanks. Unfortunately, and I have to apologize for this omission, I forgot to mention that I'm working with Tomcat 4.1.31. Also unfortunately, that's the only version that I can work with, for some specific reasons... For V4.1.31, is there any similar capability? Jim This is from the server.xml file in 4.1.24: !-- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- Ben, Thanks. Something similar was in the 4.1.31 server.xml also, which worked. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to Enable Logging HTTP Requests (Tomcat standalone)?
Hi, I was wondering if it's possible to configure a standalone Tomcat to log HTTP requests (and posts too, ideally)? If it is, how do I do this, and where does it (Tomcat) log the output to? I've tried editing the Debug level in the Connector in server.xml, and then bouncing Tomcat, but that doesn't seem to do it. Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]