Re: Possible to limit 414 (URI too long) entries?
Edward Rudd <[email protected]> Fri, 25 Mar 2005 18:34:41 -0500
| Newsgroups | gmane.comp.apache.mod-log-sql |
|---|---|
| Organization | OutOfOrder.cc |
| Message-ID | <[email protected]> |
On Fri, 2005-03-25 at 15:22, Jorey Bump wrote: > I'm considering using mod_log_sql for my virtual hosting setup. One of > the first things I do when configuring apache is to prevent the logging > of 414 (URI too long) requests, to reduce clutter/size of the log: > > # %!414r reduce clutter, only a "-" will be displayed > LogFormat "%h %l %u %t \"%!414r\" %>s %b" common > > This allows me to track these requests in the log, without actually > storing the request string itself. Is there a similar capability in > mod_log_sql? Currently, no there is not that capability, though only the first 255 bytes of the request are logged to the database. So it will not waste an excess amount of space in the database. I'm trying to put as little logic in the module itself and off load that to the database to do the logic for an end-user app that will query the database. I have added this in as a feature request on the issue tracker http://issues.outoforder.cc/view.php?id=31 I may add this in when I redo the way the TransferLogFormat configuration parameter is done as the current method is very limited in functionality. > Note that I want to control this based on the status code, not a > substring of the full request, so LogSQLRequestIgnore will not work. > Also, LogSQLRequestIgnore will prevent the logging of any information to > the db, which is undesirable. I simply want to replace the full request > string (r) with "-", without resorting to a regular cron job. > > _______________________________________________ > Download the latest version at http://www.outoforder.cc/projects/apache/mod_log_sql/ > > To unsubscribe send an e-mail to mod_log_sql-unsubscribe-7qY7E20V6GW73k+5HYS8LQqVMODqnSLI@public.gmane.org -- Edward Rudd <[email protected]> Website http://www.outoforder.cc/ _______________________________________________ Download the latest version at http://www.outoforder.cc/projects/apache/mod_log_sql/ To unsubscribe send an e-mail to mod_log_sql-unsubscribe-7qY7E20V6GW73k+5HYS8LQqVMODqnSLI@public.gmane.org
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQBCRKAQvwMxRUUct20RAnpKAJ9K2WgRJtQRkJk6hLzHuisT6r/DHACcCxfT hUavp2Hk9NoYd7KaXMWZ0Qk= =Q1tA -----END PGP SIGNATURE-----