aspose file tools*
The moose likes Tomcat and the fly likes Configuring accesslogvalve to log only parts of a site Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring accesslogvalve to log only parts of a site" Watch "Configuring accesslogvalve to log only parts of a site" New topic
Author

Configuring accesslogvalve to log only parts of a site

conrad Johnston
Greenhorn

Joined: Jan 19, 2011
Posts: 5

Hi,

I'm hoping someone can advise me on this.

I have a site running under Apache Tomcat 6.0.29 where the client wants access logs for only a particular portion of the site. specifically the login page.

I understand that the accesslogvalve enables logging for the entire site and all content. Is there a way I can limit this to only the login page (its a known url). I don't want to log everything and then filter the log to send them only the relevant portions as i am sure this would degrade performance for the entire site.

Your advice appreciated in advance.

Cheers,

C.
leo donahue
Ranch Hand

Joined: Apr 17, 2003
Posts: 327
You don't want an access log valve for this. You want a filter, then you can map it to the URL of the login page.

example


Thanks, leo
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring accesslogvalve to log only parts of a site
 
Similar Threads
tomcat login question
Collect Servlet and JSP invocation stats in Tomcat
logging all valid or invalid login attempts from LockOutRealm
domain name for Intranet project
Securing only login page