Help - Search - Members - Calendar
Full Version: Missing W3C Extended Log File Format Adcanced Properties
The Planet Forums > Operating Systems > Microsoft Windows > Windows HOWTOs
Vinnie Pasetta
On some EV1 Servers, the W3C Extended Log File Format Advanced Properties are missing. You find this by opening the IIS Manager, selecting the properties of the website, and going to the advanced properties of the logging box.

You might find the box is blank. Instead, it should be full of options. This means the MetaBase.XML file in "C:WINDOWSsystem32inetsrv" is missing some parameters.

You can correct this manually. First, stop the IIS Admin Service and all dependecies. Then make a copy the current MetaBase.XML file. Then open the MetaBase.XML file in notepad. (The default view is in IE which will not work.) (Turn off word wrap.)

Locate the following piece of code. It should be near the top 1/4 of the file. (The actual AdminACL will vary and this example has been changed for security purposes.)

CODE
<IIsLogModules    Location ="/LM/Logging"

 AdminACL="49634462a00000005800000040000000d47019ae561f0425c1834b43u043048030607da8bf0d4f2b
7c27eb3ef48f4f75fc3d2a63b9e0eefc91e20ef87767bdbaba5a5e5375015d31b97ef14c545df345c
59b2b371kjdfbdksfnkjfnknka5f2872519c08ac31f0449f9cfffd9e039cb3310a505da0825beb940
aff1df8e3c7e2b33a7597d186c4e35dd046d2a526cc8b448008efabd62a54906b5892ec2a2abb81e9
af9d605b1f46d4a1daa18299b"

    >

</IIsLogModules>


Right after it, copy in the following code.

CODE
<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging"

 LogCustomPropertyServicesString="W3SVC

     MSFTPSVC

     SMTPSVC

     NNTPSVC"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Date"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="date"

 LogCustomPropertyID="4013"

 LogCustomPropertyMask="1"

 LogCustomPropertyName="Date"

 LogCustomPropertyNodeID="1"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties"

 LogCustomPropertyDataType="6"

 LogCustomPropertyID="4013"

 LogCustomPropertyName="Extended Properties"

 LogCustomPropertyNodeID="3"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Bytes Received"

 LogCustomPropertyDataType="3"

 LogCustomPropertyHeader="cs-bytes"

 LogCustomPropertyMask="8192"

 LogCustomPropertyName="Bytes Received"

 LogCustomPropertyNodeID="17"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Bytes Sent"

 LogCustomPropertyDataType="3"

 LogCustomPropertyHeader="sc-bytes"

 LogCustomPropertyMask="4096"

 LogCustomPropertyName="Bytes Sent"

 LogCustomPropertyNodeID="16"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Client IP Address"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="c-ip"

 LogCustomPropertyMask="4"

 LogCustomPropertyName="Client IP Address"

 LogCustomPropertyNodeID="5"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Cookie"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="cs(Cookie)"

 LogCustomPropertyMask="131072"

 LogCustomPropertyName="Cookie"

 LogCustomPropertyNodeID="22"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Host"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="cs-host"

 LogCustomPropertyMask="1048576"

 LogCustomPropertyName="Host"

 LogCustomPropertyNodeID="20"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Method"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="cs-method"

 LogCustomPropertyMask="128"

 LogCustomPropertyName="Method"

 LogCustomPropertyNodeID="11"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Protocol Status"

 LogCustomPropertyDataType="3"

 LogCustomPropertyHeader="sc-status"

 LogCustomPropertyMask="1024"

 LogCustomPropertyName="Protocol Status"

 LogCustomPropertyNodeID="14"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Protocol Substatus"

 LogCustomPropertyDataType="3"

 LogCustomPropertyHeader="sc-substatus"

 LogCustomPropertyMask="2097152"

 LogCustomPropertyName="Protocol Substatus"

 LogCustomPropertyNodeID="32"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Protocol Version"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="cs-version"

 LogCustomPropertyMask="524288"

 LogCustomPropertyName="Protocol Version"

 LogCustomPropertyNodeID="19"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Referer"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="cs(Referer)"

 LogCustomPropertyMask="262144"

 LogCustomPropertyName="Referer"

 LogCustomPropertyNodeID="23"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Server IP"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="s-ip"

 LogCustomPropertyMask="64"

 LogCustomPropertyName="Server IP Address"

 LogCustomPropertyNodeID="9"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Server Name"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="s-computername"

 LogCustomPropertyMask="32"

 LogCustomPropertyName="Server Name"

 LogCustomPropertyNodeID="8"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Server Port"

 LogCustomPropertyDataType="3"

 LogCustomPropertyHeader="s-port"

 LogCustomPropertyMask="32768"

 LogCustomPropertyName="Server Port"

 LogCustomPropertyNodeID="10"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Service Name"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="s-sitename"

 LogCustomPropertyMask="16"

 LogCustomPropertyName="Service Name"

 LogCustomPropertyNodeID="7"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Time Taken"

 LogCustomPropertyDataType="3"

 LogCustomPropertyHeader="time-taken"

 LogCustomPropertyMask="16384"

 LogCustomPropertyName="Time Taken"

 LogCustomPropertyNodeID="18"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/URI Query"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="cs-uri-query"

 LogCustomPropertyMask="512"

 LogCustomPropertyName="URI Query"

 LogCustomPropertyNodeID="13"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/URI Stem"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="cs-uri-stem"

 LogCustomPropertyMask="256"

 LogCustomPropertyName="URI Stem"

 LogCustomPropertyNodeID="12"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/User Agent"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="cs(User-Agent)"

 LogCustomPropertyMask="65536"

 LogCustomPropertyName="User Agent"

 LogCustomPropertyNodeID="21"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/User Name"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="cs-username"

 LogCustomPropertyMask="8"

 LogCustomPropertyName="User Name"

 LogCustomPropertyNodeID="6"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Extended Properties/Win32 Status"

 LogCustomPropertyDataType="3"

 LogCustomPropertyHeader="sc-win32-status"

 LogCustomPropertyMask="2048"

 LogCustomPropertyName="Win32 Status"

 LogCustomPropertyNodeID="15"

    >

</IIsCustomLogModule>

<IIsCustomLogModule    Location ="/LM/Logging/Custom Logging/Time"

 LogCustomPropertyDataType="6"

 LogCustomPropertyHeader="time"

 LogCustomPropertyID="4013"

 LogCustomPropertyMask="2"

 LogCustomPropertyName="Time"

 LogCustomPropertyNodeID="2"

    >

</IIsCustomLogModule>


Save the file and restart all the stopped services. You will have all of your selections now.

This was my 300th post!
gummyAvenger
QUOTE
Originally posted by Vinnie Pasetta
This was my 300th post!  

Congrats icon_biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.