Recently, some customers have requested website logs for analysis. Because the newly installed server has an external system installed, a binary (. IBL) log function. This function is enabled by default in the off-star system. After this function is enabled, all websites on the server write log data to a single log file. The log file extension is. ibl.
In the past, due to the main analysis of the. log file, it was not familiar with binary (. IBL) logs. I checked the relevant information and learned that the Microsoft official log parser 2.2 tool can read binary log files and extract individual website logs, as shown below:
Http://www.microsoft.com/downloads/details.aspx? Familyid = 890cd06b-abf8-4c25-91b2-f8d975cf8c07 & displaylang = en
After the download, install and run log parser. The interface is as follows:
Ha ha, use Log parser 2.2 tool for the first time, relevant learning tutorial see http://www.microsoft.com/china/technet/community/columns/profwin/pw0505.mspx! The following figure shows the Log Service commands in the log1.txt file of the website with the id_742.com!
Logparser "select * into log1.txt from *. IBL where siteid = 742"
Because logs outside of the star are retained for only two days by default,To disable the binary (. IBL) log function, run the following command:
Run cmd first, and then run:
Cd c: \ Inetpub \ adminscripts \
Enter this directory,
Run again:
Cscript.exe adsutil. vbs set w3svc/centralbinaryloggingenabled false
You must stop and restart the WWW Service to make the change take effect.
Run net stop w3svc
The WWW Service is stopped immediately.
Enable Net start w3svc
The WWW Service is started immediately.
Similarly, enable the binary log file and change "false" to "true", as shown below:
Cscript.exe adsutil. vbs set w3svc/centralbinaryloggingenabled true
Of course, you also need to restart the WWW Publishing Service ).
For more information, see Microsoft http://www.microsoft.com/china/technet/community/columns/profwin/pw0505.mspx.