[Mod_log_sql] Possible to limit 414 (URI too long) entries?

Edward Rudd urkle at outoforder.cc
Fri Mar 25 18:34:41 EST 2005


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 at lists.outoforder.cc
-- 
Edward Rudd <urkle at outoforder.cc>
Website http://www.outoforder.cc/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.outoforder.cc/pipermail/mod_log_sql/attachments/20050325/55ef85d0/attachment.bin 


More information about the Mod_log_sql mailing list