Welcome! Log In Create A New Profile

Advanced

log request only when they reached a size

All files from this thread

File Name File Size   Posted by Date  
http_log_module-size.patch 2.9 KB open | download KARASZI Istvan 11/23/2011 Read message
KARASZI Istvan
November 23, 2011 05:58AM
Dear list!

I'm new here, so I just hope I'm following the rules.

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.



Thanks,
--
KARASZI Istvan
http://adverticum.com/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - http_log_module-size.patch (2.9 KB)
Subject Author Posted

log request only when they reached a size Attachments

KARASZI Istvan November 23, 2011 05:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 60
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready