log if body_size greater than

mailinglist at modernbiztonsag.org mailinglist at modernbiztonsag.org
Tue Oct 11 21:24:34 UTC 2011

Dear Users,

I'm reading through the docs and I've found that the rewrite module has
some basic comparison operators. Is there a way or trick to implement some
conditional processing at other parts of the configuration? My situation
is that I'm serving a lot of files through nginx and I would like to be
able to log the request if the file is bigger than a given size. I was
thinking about using the $body_size to log the actual size but I cannot
implement the condition checking with the tools I know. Is there a way to
achieve this with the current features of nginx?

Best regards,

More information about the nginx mailing list