code, 200 for success, 403 for no permissions, 404 for the page not found, specify below.Sc-substatus: Protocol sub State, logging HTTP child status code.Sc-win32-status:win32 status, log the Windows status code, and refer to the description of the log "Sc-win32-status--win32 status details in IIS", which was sent in the Chxwei blog.Sc-bytes: The number of bytes
, select a Web site, and double-click the log icon, refer to:At this point (main section) the interface is as follows:In, the log is created every day to generate a new file, and the file name is generated by date (this is the default value).Description: IIS uses UTC time, so I ticked the bottom check box to tell IIS t
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
directory is also copied to the Web publishing directory.Set up IIS log because IIS logs are truncated on a daily basis, there is no need for additional settings. You only need to set the fields for the log by following the list:-date (Date)-time (?)-Client IP address (C-IP
generate a file name.
Click Select field. The following dialog box is displayed:
Note:[Number of sent fields] and [number of received bytes] are not selected by default.We recommend that you select them.For other fields, you can decide whether to select them as needed. How to analyze IIS logs
If you set IIS
Like a new network of parts of the server FTP directory has this file, but is prompted not to view and do not have permission to download, but also have to call them to be able to.
As the site owner, we should focus on the IIS log, from which we can not only see the site's Access records and search engine crawl records, you can also see which sites hotlinking the site of which resources, partial dead links
follows (this article takes the interface of IIS 8 for example).
In IIS Manager, select a Web site, double-click the log icon, and refer to the following figure:
At this point (the main part) the interface is as follows:
In the screenshot, the way the log is created is to generate a new file every day, generating th
30 days or 31 days or run month), and then processed into 20070916 such a format, Then combine the IIS log file formats such as Ex070916.log so that we get the log file names to clean up and then we'll use del/s/f D:\iislog\ex070916.log
day-based truncation rules
For Apache: Set the log format to combined. to truncate logs, you must install the cronolog tool to truncate logs by day:Customlog "|/usr/local/sbin/cronolog/path/to/Apache/logs/access_log. % Y % m % d" combinedFor example: logs/access_log.20030326
For IIS: by default, there are good daily log
sample: http://www.chedong.com/cgi-bin/awstats/awstats.pl? Config = chedong
Perl-based: the system can run on GNU/Linux or Windows (after ActivePerl is installed), and the log analysis directly supports the Apache format (combined) and IIS format (need to be modified ). Although Webalizer has a Windows platform versi
can generate hundreds of M log files in a day, and they must be cleaned up in time.
There are two solutions:1. Clean the logs of the previous 60 days every day2. Clear the logs 60 days ago in a short time.However, either method requires technical processing. If you manually delete it, you can find the log file that was deleted 60 days ago unless you are very professional. However, even if your technology i
What the IIS logs meanIIS is an abbreviation for Internet Information Server, which means that the network Information service, the log is the running recordThe default directory for the IIS logs is%systemroot%\system32\logfiles\ (which can be customized as well)Log format:
/Apache/htdocs/More batch update scripts can be stored in the cgi-bin/AWStats/directory under the tools directory,
Windows 2000: Run in Script Mode on the background. Unpack the package and move it to the D: \ AWStats directory.Copy the icon directory to the publishing directory of IIS: inetpub/icon Data Source log format and day-based truncation rules
F
truncation rule, but the log format for IIS is less appropriate for Awstats statistics.So it's best to get rid of all the log fields, and then strictly follow these list settings
Dates Date
Time
Client IP Address C-ip
User name Cs-username
/Apache/logs/access_log. % Y % m % d" combinedFor example: logs/access_log.20030326Logs are compressed. You can use gzip-D
For IIS: by default, there are good daily log truncation rules, but the IIS log format is not suitable for AWStats statistics,Therefore, it is best
Log records are critical to any server. This is no exception for IIS servers. In Windows 7, IIS logging has been greatly improved compared to 2003. The operating system administrator has more options than the log format or other optional items. As shown in, this is the basic
Recently in the analysis of web logs, it was found that the time in the IIS7 log was inconsistent with the system time, that is, when it was time to workThe production of concurrent access logs, all occurred in the wee hours before work.650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8C/F1/wKioL1h_N-6AVV6sAAA99reFjDc297.png-wh_500x0-wm_3 -wmp_4-s_531519730.png "title=" Qq20170118173936.png "alt=" Wkiol1h_n-6avv6saaa99refjdc297.png-wh_50 "/>
number] command in cmd. (For websites, FTP may not work, for example, 226,230)
The command is as follows: Net helpmsg 0; net helpmsg 100; net helpmsg 200;
IIS Log Path
Default location: % SystemRoot % \ system32 \ logfiles.
The IIS log time is 8 hours different from the local time:
The real reason is that
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.