-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Miguel,
On 6/7/12 5:51 PM, Miguel González Castaños wrote: > >> That depends upon how you have configured your access log: you >> can configure an access log to log only requests that failed and >> the details of that request like this: >> >> <Valve className="org.apache.catalina.valves.AccessLogValve" >> conditionIf="org.apache.catalina.parameter_parse_failed" .... /> >> >> You will probably want to put "%t" and "%r" in your pattern. > > This looks interesting. In my test environment (with Tomcat 7 and > java 1.7) it shows by default > > <Valve className="org.apache.catalina.valves.AccessLogValve" > directory="logs" prefix="localhost_access_log." suffix=".txt" > pattern="%h %l %u %t "%r" %s %b" /> > > this should keep track of the errors just adding just the entry: > > conditionIf="org.apache.catalina.parameter_parse_failed" You'll never know what the POST contents were in this case. So, if the broken parameter comes as part of the POST, you'll get no more information than you would get in your usual access log (except that you'll know the specific request failed). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/UuNcACgkQ9CaO5/Lv0PD8jwCfY2KWiapFA2sdbPyqNrAZnYXG pesAnRgk1bEpAUv8VXupYiInn29xTjat =Owuw -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org