How do I view a Web site log file?

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

What is a Web log?

The so-called website log, is the site of the service what is the site log?

The so-called web site log, is the site of the server to accept users of various requests when the processing status of the record, whether the normal processing or a variety of errors, will be recorded in the Web site log, the end of the file with. log as the extension.

How do I view the Web log?

220.181.108.180–-[25/may/2011:20:21:56 +0800] "get/http/1.1″200 12447"-"" mozilla/5.0 (compatible; baiduspider/2.0; +http://www.baidu.com/search/spider.html) "

Let me give a detailed description of the Web site log can tell us what useful information.

220.181.108.180--This is the user's IP address, I believe we can easily read. Know the user's IP, you can even query to learn from which country, which province, which city. Enquiries found that this IP from the domestic Beijing region. The user base of different websites will have the obvious difference, for example my blog affirmation most visitor is from Shenyang, and some website its user does not have any obvious geographical difference. User IP with the following keywords and other information can make you more effective analysis of the site's user experience is not good enough.

[25/may/2011:20:21:56 +0800]--here is the exact time when the processing request occurred. This time is May 25, 2011 20:21 56 seconds, the following +0800 refers to the time zone, that is, the place relative to the London GMT, + 0800 represents the East eight district time.

get--This is the processing action of the server, there are only two kinds: get and post. In the site log most are get, only in the CGI processing will appear post, otherwise most of the time server response is get, that is, users from the server to obtain the page or other files. Note that there is a "/" Behind the Get, here is the user visited the page, only a slash natural representative to visit the homepage of the website.

http/1.1--this on behalf of the user to access the page, is transmitted through the HTTP1.1 protocol, that is, Hypertext Transfer version 1.1 protocol. This we do not have to pay attention, because in addition to the Web site log you may use FTP, ordinary users are basically through the HTTP protocol to access (except for FTP download site).

200 12447--represents the status code that is returned when the user accesses the page. Usually the status code has the following: 200,301,302,304,404,500. 200 on behalf of the user successfully obtained the requested file, if it is a search engine, it is proved that spiders in this crawling successfully found some new content. and 301 on behalf of the user visited a page URL has done 301 redirect (permanent) processing, 302 is temporary redirect, if your site log has too much 302 code, then you need to pay attention to, is not the 301 done wrong made 302? Quickly revise, Search engines do not like 302 redirects. 404 means that the page visited does not exist, or that the URL to access is simply a mistake. 500 is the server error. Status code is more, want to know more about the friend please go to search yourself, the information on the Internet is very much. The following 12447 represents the volume of pages visited, my blog because of the use of gzip compression, so the home page is less than 12.5KB. mozilla/5.0 (compatible; baiduspider/2.0; +http://www.baidu.com/search/spider.html)--This line describes some of the user's situation in detail. Of course, I chose this section of the site log is actually Baidu Spider as a user is logged down the site log. This whole line on behalf of the user is Baidu Spider, note that from this year's May 10, Baidu spider Field found a change, into this line of code. The original is baiduspider+ (+http://www.baidu.com/search/spider.htm). In fact, from this section of the log can see the user is what browser, through which search engine which keyword came to the page and so on.

The above is a simple analysis of a site log, of course, in fact, most of the time we do not need to manually view the site log, there are a lot of SEO tools for us to use the analysis site log. However, when your site does have some problems, then the general log analysis software can not help you, you have to check the log, this time this article may come in handy, is not?

Related Article

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.