Separate Nginx access log file for certain requests only

view story

http://serverfault.com – As far as I can see Nginx supports by default 2 log files: error_log (tracks issues related to the Nginx server itself) and access_log (tracks requests processed by Nginx). Whilst it is possible to control the format of access_log with the log_format directive, I have been unsuccessful at finding a way of logging only certain requests to a separate file, and therefore would like to ask the question on SF as a reference for future readers: Is there a way to log certain requests to a different log file than the one defined by access_log? FYI the reason behind this question is that I have a rul (HowTos)