What I am suggesting is using servlet filters (new in 2.3 spec). It is more work but more customizable. I was really suggesting them as an alternative to WebTrends. what I think WebTrends does for some of its functions is add bits of JavaScript to the web pages that are served up so that the pages can "log themselves" and provide more advanced analysis than standard logging.
In the doFilter method, right before the call to chain.doFilter, put your logging code. remember that in filters, you can get at the request, response, and session objects. So my thinking is that you get the session ID and log that and the page every time a page request is made. Then you write a custom report that shows the stream of requests from a single user. Since you map filters the same way you map servlets, you can map every request to a filter: <filter> <filter-name>LoggingFilter</filter-name> <filter-class>LoggingFilter</filter-class> </filter> <filter-mapping> <filter-name>LoggingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> For info on filters, check the Filters chapter in the JRun Programmer's Guide. There are also lots of third party books that do a better job than I did on showing how to write good filters. -----Original Message----- From: Michael Greenberg [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 10:02 AM To: JRun-Talk Subject: RE: Jrun logs for WebTrends Yes please elaborate Matthew...This would really help in the interim. My IT guys are saying that since I am using Jrun that Apache wont capture the logs. -----Original Message----- From: Zhang, Yuying [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:46 AM To: JRun-Talk Subject: RE: Jrun logs for WebTrends Could you put it into more detail? Like how the servlet filters work with WebTrends, is it a setting on JRun or WebTrends? Another question is what does the Javascript do on each page? Thanks, YZ -----Original Message----- From: Matthew Horn [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:17 AM To: JRun-Talk Subject: RE: Jrun logs for WebTrends another idea is that you can use servlet filters to create your own log files on every page request. this would give you the ability to do more complex tracking like clickstream analysis that is normally reserved for third-party tools. WebTrends makes this ability available, too, but it requires embedding Javascript into every web page, which can make maintenance a nightmare. -----Original Message----- From: Matthew Horn [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 8:11 AM To: JRun-Talk Subject: RE: Jrun logs for WebTrends I assume you mean web log files. unfortunately, the JWS is not a full-featured web server (not really intended for production), so if you want log analysis, you are better off connecting the jrun server to an external web server (such as Apache, IIS, etc) and then running WebTrends against that web server's log files. -----Original Message----- From: Justin MacCarthy [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 8:09 AM To: JRun-Talk Subject: RE: Jrun logs for WebTrends What do you mean by user reports? I think you might be looking for the web logs??? If you are using apache look here http://httpd.apache.org/docs/logs.html Justin > -----Original Message----- > From: Michael Greenberg [mailto:[EMAIL PROTECTED]] > Sent: 26 September 2002 12:48 > To: JRun-Talk > Subject: Jrun logs for WebTrends > > > I'm runnning Jrun 4 on RedHat 7.2 and suddenly have the need to setup > WebTrends reporting software and I was wondering where jrun stored user > logs. I thought it would be in the logs directory, but those are just the > event logs. > > I've never had to to work with Jrun and Webtrends before. Are there any > other issues I should know about? > > Thanks, > Michael > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
