tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angus Mezick" <>
Subject RE: tracking downloads
Date Thu, 10 Jul 2003 18:17:15 GMT
You mean, like use the items in the access log?  You could always create
a valve that watches for certain paths and updates a DB/file entry or
some such.

> -----Original Message-----
> From: Mark F [] 
> Sent: Thursday, July 10, 2003 2:15 PM
> To: Tomcat Users List
> Subject: tracking downloads
> We need to track every time a file is downloaded from our 
> server so that we may report on usage.  We are currently 
> migrating to a new Java/JSP (Documentum and WDK) based Web 
> application.  We wrote a perl script before under the old 
> system to parse the log files and construct a report but I'm 
> fairly certain there is a better way now that we are using 
> Tomcat and Java.  I thought about using a filter to increment 
> a counter every time a request matched a particular pattern 
> and I also thought about using the log file approach again 
> this time using a java logging package but I'm not really 
> sure what the best approach would be.  Especially since we 
> will not only need to record the download but query the 
> database (or in this case documentum) in order to check for a 
> specific attribute relevant to the report.
> Any ideas on how best to accomplish this are appreciated.
> -Mark

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message