You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Arun Rajendran <nr...@gmail.com> on 2011/05/07 21:33:20 UTC

Re: How to configure Access logs to ignore images





Can anyone help us in blogging in particular IP logging in tomcat access
log?











johnrock wrote:
> 
> I have set up an Access Log in Tomcat 6. Can someone tell me how to limit
> access logging to only .jsp's and .html pages? 
> 
> I have read numerous posts and it is amazing how many responses there are
> to similiar questions that all point to the 'condition' parameter
> documentation...which I have thoroughly read. Checking the ServletRequest
> for a null attribute, however, does not intuitively appear to be
> applicable to filtering requests that are logged based on file extension.
> 
> Can this be done withouth re-writing your application to specifically pass
> parameters just to  trigger logging? If so, could someone offer an
> example?
> 
> Thanks!
> 
> <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="false"
>             xmlValidation="false" xmlNamespaceAware="false">
> 
>         <Valve
> className="org.apache.catalina.valves.FastCommonAccessLogValve"
> directory="logs/access"
>                prefix="access_log." suffix=".txt" pattern="common"
> resolveHosts="false"/>
> 
> </Host>
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-configure-Access-logs-to-ignore-images-tp23714046p31567407.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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