IIS log analysis is our Asp.net Program Personnel must understand the knowledge, because the website we develop is based on the IIS server. When Website access is slow Code In addition to the optimization program code, IIS logs are another way to find slow websites!
The location where iis log files are stored. The default location is (c: \ windows \ system32 \ logfiles). In the IIS information service window, click the properties of the website to be set, on the "Web page" tab, you can view the "Start log record" item and set the log storage location and log record format, VM users can generate IIS logs through the background provided by the Space Provider, for example, "weblog log download" in hichina ".
What information does IIS log provide for us?
1. Learn about the search engine access records through IIS logs:
2. Check whether the website has dead links through IIS logs: press Ctrl + F in the IIS log file opened with ultraedit. In the displayed window (1 ), select the first and third check boxes, enter 404, and press enter to see if any records are found in the pop-up window. If it is found, it indicates that your website has a dead link. Everyone knows that the dead link has an impact on website indexing. I don't need to talk about how to deal with it.
3. Check for program errors on the website through IIS logs:
Enter "500" to search. If the page is displayed, it indicates that the website program encountered an error during running and needs to be modified.
4. Use IIS logs to check whether the website has been intruded:
Through IIS logs, you can determine whether a website has been injected through SQL and how it has been intruded. In the IIS log of the website, search for % 20 and 'Single quotation marks (half-width) to see if any related page exists. Of course not all pages including % 20 and 'are injected into the page, however, normal SQL injection is performed through % 20 (The hexadecimal value of the Space ASC code is 20) and single quotes. This method can detect program vulnerabilities, so that we can modify programs to prevent SQL injection. I used this method to understand the whole process of website SQL injection and the extent of the intrusion, and then modified the program to prevent the website from being intruded again.
IIS log analysis tool and download URL
Recommendation: faststs analyzer, logs2intrusions v.1.0, Microsoft IIS analysis log parser 2.2
AWStats is a well-known web/mail/FTP server log file analysis tool on sourceforge.net.