nginx技术(5)日志管理和限速

   log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                     '$status $body_bytes_sent "$http_referer" '
                     '"$http_user_agent" "$http_x_forwarded_for"';

   access_log  /var/log/nginx/access.log  main;

 

[root@centos6 ~]#    tail /var/log/nginx/access.log
192.168.87.133 - - [20/May/2013:05:47:26 -0700] "GET /favicon.ico HTTP/1.1" 404 168 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9"
192.168.87.133 - - [20/May/2013:05:53:24 -0700] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9"
127.0.0.1 - - [20/May/2013:05:53:32 -0700] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9"
192.168.87.133 - - [20/May/2013:06:22:04 -0700] "GET / HTTP/1.1" 200 612 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9" "-"
192.168.87.133 - - [20/May/2013:06:22:12 -0700] "GET /www1 HTTP/1.1" 301 184 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9" "-"
192.168.87.133 - - [20/May/2013:06:22:12 -0700] "GET /www1/ HTTP/1.1" 200 18 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9" "-"
192.168.87.133 - - [20/May/2013:06:22:52 -0700] "GET /i/ HTTP/1.1" 403 168 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9" "-"
192.168.87.133 - - [20/May/2013:06:24:18 -0700] "GET /www HTTP/1.1" 404 168 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9" "-"
192.168.87.133 - - [20/May/2013:06:24:22 -0700] "GET /www HTTP/1.1" 404 168 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9" "-"
192.168.87.133 - - [20/May/2013:06:24:30 -0700] "GET /www1/ HTTP/1.1" 200 394 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20110412 CentOS/3.6.9-2.el6.centos Firefox/3.6.9" "-"








你可能感兴趣的:(nginx)