Wednesday, October 13, 2010

How to create IIS Log [IIS 6.0]

1. Open [Internet Services Manager]

2. For [Default Web Site], Right click and open [Properties]

3. In the tab, [Web Site], enable the checkbox [Enable Logging]

4. Select [Active Log Format] as [W3C Extended Log File Format]

5. Click on the button [Properties]

6. In the [General Properties] tab, select [Daily] for [New Log Time Period]

7. In the [Extended Properties] tab, select the following fields

I. date

II. time

III. s-sitename

IV. s-computername

V. s-ip

VI. cs-method

VII. cs-uri-stem

VIII. cs-uri-query

IX. s-port

X. cs-username

XI. c-ip

XII. cs-version

XIII. cs(User-Agent)

XIV. cs(Cookie)

XV. cs(Referer)

XVI. cs-host

XVII. sc-status

XVIII. sc-substatus

XIX. sc-win32-status

XX. sc-bytes

XXI. cs-bytes

XXII. 22. time-taken

8. Apply the configuration changes