Log parser IIS log analysis. IBL (Binary) log analysis and enable/disable

Source: Internet
Author: User

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.

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.