Jeff Kohut wrote:
I am running Tomcat  7.0.54 on a Windows 2008 R1 with SP1 platform.

I would like to control the contents of what gets logged to the Tomcat
 localhost_access_log

specifically , I would like to remove logging of entries like :

10.239.54.8 - - [13/Feb/2015:00:00:07 -0600] "GET /atb HTTP/1.0" 200 573
10.239.58.29 - - [13/Feb/2015:00:00:08 -0600] "GET /atb HTTP/1.0" 200 561


Naive question : why make it complicated and add overhead to your Tomcat process in order to do that ? Why not leaving the access log as it is, and use an external filtering program as and when you need it ?
like
grep -v -e "^GET \/atb " access.log > clean_access.log
comes to mind..

Or, if you have several patterns to filter out :
grep -v -f file_with_patterns access.log > clean_access.log

In addition, one might argue that this leaves in existence at least one version of the access log which is really accurate, if you ever need it.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to