[patch] log request only when they reached a size
KARASZI Istvan
ikaraszi at adverticum.com
Thu Nov 24 16:26:36 UTC 2011
Dear list!
I think I sent my previous mail to a bad location, so I'm resending it from nginx list to nginx-devel.
I would like to send a patch for http_log_module which I made for version nginx-1.0.10.
My company is in adserving business and it is important for us to log the big requests with the access_log feature. But we were unable to do that with nginx, because logging all the requests would produce too much I/O load on our servers.
So I made a patch for http_log_module to accept a `size` parameter which is optional (the last parameter after the `buffer`). If this `size` is provided nginx logs only the big enough requests with access_log (checks for `body_bytes_sent`).
I hope you find it useful and you will include this in the upstream.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx-log.patch
Type: application/octet-stream
Size: 2557 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20111124/4818aa2e/attachment.obj>
-------------- next part --------------
Thank you!
--
KARASZI Istvan
http://adverticum.com/
More information about the nginx-devel
mailing list