Method 1:
Use their own extraction tools to extract data as follows:
Can I use commands on the controlled server to extract logs? The command format is:
7i24iislog2 test-1
Test indicates the ftp user name, and-1 indicates yesterday. If 0 is entered, it indicates today.
PS: This method can extract logs for up to two days, because the off-star system retains logs for only two days by default!
Method 2:
IIS 6.0 also has a feature called binary log. After this feature is enabled, IIS 6.0 writes all the log information of the Web site to a binary log file, the log file extension is. ibl. To enable the binary log function, set the W3SVCC/CentralBinaryLoggingEnabled entry in the configuration file to true (1. This function should be very useful for ISPs. Each ISP machine may have 1000 or more Web sites. If each Web site generates a log file every day, the total number of log files will soon reach an astronomical number. Microsoft's recently released Log Parser 2.2 tool that reads binary Log files and generates reports that can be downloaded from the http://download.microsoft.com/download/f/f/1/ff1819f9-f702-48a5-bbc7-c9656bc74de8/LogParser.msi. Log Parser 2.2 can also read the preceding httperr. log File and generate a report.
Download Log Parser 2.2. then, go to the installation directory of the software, find the directory where logparser.exe is located, and then execute the following command to extract logs!
For more information about how to use Log Parser 2.2, see the http://blog.atimg.com/article/1035.htm.
The following command is used to extract the log of a website with a website ID of 742to the aaa.txt file!
Logparser "select * into aaa.txt from *. ibl where siteid = 742"
PS: by default, logs are retained for only two days. However, if your server is blocked by the cyber police or the public security bureau, they will ask you to provide website logs for at least two months, at this time, all the users of the vast number of off-star virtual host systems are starting to grow, because you have no way to extract logs for more than two days, at this time, you have no way to deal with public security by forging logs. If you want to have more logs, you can only disable the off-star log function. The method is as follows:
Qingcloud 09:42:16
How can I set IIS log management instead of your log management?
IT power 2 09:43:31
If you have used an out-Of-The-stars host system, because it is a merge log format by default,
It can be solved in this way,
Run cmd first, and then run:
Cd c: InetpubAdminScripts
Enter this directory,
Run again:
Cscript.exe adsutil. vbs SET W3SVC/CentralBinaryLoggingEnabled false
Then restart IIS
In this way, the traffic function will be invalid.
If you want to restore to the merged log format later, you can
Start --- 7i24 virtual host controlled end ---- change the Shared Password to restore to the merged state
Qingcloud 09:44:49
After this setting, can your system run normally besides logs?
IT power 2 09:44:59
Normal.