Log if body_size greater than

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,
Mate

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs