Make nginx log the query string?

Igor Sysoev is at rambler-co.ru
Fri May 11 09:05:30 MSD 2007


On Thu, May 10, 2007 at 03:02:56PM -0700, Ezra Zygmuntowicz wrote:

> Hey Nginx'ers
> 
> 	I have a requirement to have a little vhost who's sole existance in  
> life is to just log the query string of each GET request it recieves.  
> Is this even possible?

   logformat   qs   "$remote_addr $args";

   server {
       server_name  NAME;

       access_log   /path/to/log  qs;

       location  / {
           root /path/to/root;
       }
   }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list