Nginx Technology (5) Log management and speed limit

Source: Internet
Author: User

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-"" 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" 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" 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"-"" 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-"" 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-"" 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-"" 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" 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 ""-"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.