CYQ. IISLogViewer is an IIS log analysis tool V1.0 released [Source Code]

Source: Internet
Author: User

A few words:

Yesterday, I chatted with netizens in the autumn open-source team. Some netizens mentioned a concept that must be known for the website: IIS Log Analysis.

Then I went online and looked for some information. However, there was no IIS log in the subdirectories of the virtual directories. So I moved the autumn garden to the new VPS last night, officially moved to the legendary gambling City "Las Vegas", and there were a lot of problems in the middle, tossing to 4 o'clock in the night.

So now the address of the autumn garden is "Las Vegas", but the database still uses Access.

Next I entered the question, so I ran IIS and looked at the log and found a pile of data, which was difficult to analyze. So I wrote a tool to parse the data.

 

Introduction:

SEO friends often analyze IIS logs. Through log analysis, you can find some problems on the website. Only after you properly handle these problems, website SEO can do better. How can I analyze IIS logs? Reading data one by one is too laborious. In order to better analyze and collect these logs, a small tool is specially written to help you analyze these situations more easily.

 

Tool Name:CYQ. IISLogViewer

 

The tool introduction is as follows:

 

1: double-click the running tool and click ">" to locate the folder where IIS logs are located.

 

2: click "analyze" to analyze IIS logs and obtain the summary statistics of each file.

 

Note:

Because IIS keeps writing logs, it cannot read the log files of the current day, so there is a red error prompt.

 

3: switch to "View Details" to view the status code of each log file. Based on the status code, you can get a general idea of the running status of the site.

 

4: switch to "Access time" to view the access time details of each type of SPIDER and learn about the access time period of the search engine.

 

 

: Http://www.cyqdata.com/download/article-detail-426 [Download with source code]

 

The following describes the original IIS log data:

 

For example, one line of IIS data:

00:52:03 W3SVC1 2 **. 7 **. 1 **. 7 * GET/***/index.html-80-220.181.7.43 Baiduspider + (+ baidu/search/spider.htm) 200 0 0

Explanation:

2009-09-09 00: 52: 03:Spider access time

W3SVC1: Is the recorded folder

2 **. 7 **. 1 **. 7 *:Is the IP address of the IIS server

GET/***/index.html: The webpage address accessed by the spider

-80: Yes port;

220.181.7.43: IP address of Baidu spider

200 0 0: Status Code: 200 successfully accessed this page. 0 indicates that the page is successfully crawled and brought back to the database.

 

There are many status codes. Other status codes are described as follows:

200 0 64

The appearance of 64 does not mean that Baidu wants you to be K, but the appearance of 64 does bring a lot of problems,

There are several explanations on the network:

First, 64 is a precursor to K stations.

The second 64-bit operating system only appears.

Third, the website cannot be accessed due to some reason, or the website is unstable. As a result, the spider cannot bring the page back or capture the page.

304 0 0

This return code indicates that the webpage visited by the spider has not been updated. It is the same as before, so don't worry. The spider has been there, but you haven't updated it, so he does not want to take the page away.

404 0 0

This is the 404 page, but there is a very serious problem. The return code tells us that the spider came to the 404 page and took him away. The system crashed ~~~~, If this is the case, you will be unlucky, because you have too many 404, then the SPIDER will continue to crawl and take away, which will cause numerous duplicate pages, the result is K station or downgrading. The correct return code is 404 0 64, which means that the spider has not crawled your page.

Error 500

500 errors are internal server errors and are caused by program errors. I don't understand the program, but 500 errors will reduce your score. This basic logic can be thought, if a 500 error is found, check the page and correct the following error!

302

Note that 302 of the return code is also found in the log. 302 is a temporary redirection. If you are redirecting this page to another page for a long time, please use 301 for permanent redirection, if it is 302, the Baidu spider will visit this page next time, which will cause the copying of a large number of pages. The result must be K. Therefore, take the time to check the following.

 

 

 

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.