LogExtFileFlags Metabase Property (IIS 6.0)

The LogExtFileFlags property contains flags that determine which categories of information are written to either the log file or ODBC data source during logging events. The flags are described in the Flags section.

Attribute NameAttribute Value

XML Data Type

DWORD

WMI Data Type

SINT32

ADSI Data Type

DWORD

ABO Data Type

DWORD

ABO Metabase Identifier

MD_LOGEXT_FIELD_MASK

Attributes

INHERIT

Default Value

logextfiletime | logextfileclientip |logextfilemethod | logextfileuristem | logextfilehttpstatus

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

9013

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase PathIIS Admin Object Type

/LM/W3SVC/n

IIsWebServer

/LM/MSFTPSVC/n

IIsFtpServer

/LM/W3SVC

IIsWebService

/LM/MSFTPSVC

IIsFtpService

/LM/NNTPSVC

IIsNntpService

/LM/NNTPSVC/n

IIsNntpServer

/LM/SMTPSVC

IIsSmtpService

/LM/SMTPSVC/n

IIsSmtpServer

Flags

Flag NameLogExtFileDate

Description

Log the date.

Metabase Bitmask Identifier

MD_EXTLOG_DATE

Decimal Value

1

Hexadecimal Value

0x00000001

Flag NameLogExtFileHost

Description

Log the name of host server.

Metabase Bitmask Identifier

MD_EXTLOG_HOST

Decimal Value

1048576

Hexadecimal Value

0x00100000

Flag NameLogExtFileTime

Description

Log the time.

Metabase Bitmask Identifier

MD_EXTLOG_TIME

Decimal Value

2

Hexadecimal Value

0x00000002

Flag NameLogExtFileClientIp

Description

Log the client IP address.

Metabase Bitmask Identifier

MD_EXTLOG_CLIENT_IP

Decimal Value

4

Hexadecimal Value

0x00000004

Flag NameLogExtFileUserName

Description

Log the username.

Metabase Bitmask Identifier

MD_EXTLOG_USERNAME

Decimal Value

8

Hexadecimal Value

0x00000008

Flag NameLogExtFileSiteName

Description

Log the site name.

Metabase Bitmask Identifier

MD_EXTLOG_SITE_NAME

Decimal Value

16

Hexadecimal Value

0x00000010

Flag NameLogExtFileComputerName

Description

Log the local computer name.

Metabase Bitmask Identifier

MD_EXTLOG_COMPUTER_NAME

Decimal Value

32

Hexadecimal Value

0x00000020

Flag NameLogExtFileServerIp

Description

Log the server's own IP address.

Metabase Bitmask Identifier

MD_EXTLOG_SERVER_IP

Decimal Value

64

Hexadecimal Value

0x00000040

Flag NameLogExtFileMethod

Description

Log the protocol method.

Metabase Bitmask Identifier

MD_EXTLOG_METHOD

Decimal Value

128

Hexadecimal Value

0x00000080

Flag NameLogExtFileUriStem

Description

Log the Universal Resource Identifier (URI) stem information. The URI stem usually consists of the actual resource being requested.

Metabase Bitmask Identifier

MD_EXTLOG_URI_STEM

Decimal Value

256

Hexadecimal Value

0x00000100

Flag NameLogExtFileUriQuery

Description

Log the Universal Resource Identifier (URI) query information. The URI query usually consists of parameters passed to the URL by using the URL?Parameters format.

Metabase Bitmask Identifier

MD_EXTLOG_URI_QUERY

Decimal Value

512

Hexadecimal Value

0x00000200

Flag NameLogExtFileHttpStatus

Description

Log the HTTP status.

Metabase Bitmask Identifier

MD_EXTLOG_HTTP_STATUS

Decimal Value

1024

Hexadecimal Value

0x00000400

Flag NameLogExtFileWin32Status

Description

Log the current Microsoft Win32 error status.

Metabase Bitmask Identifier

MD_EXTLOG_WIN32_STATUS

Decimal Value

2048

Hexadecimal Value

0x00000800

Flag NameLogExtFileBytesSent

Description

Log the total bytes sent.

Metabase Bitmask Identifier

MD_EXTLOG_BYTES_SENT

Decimal Value

4096

Hexadecimal Value

0x00001000

Flag NameLogExtFileBytesRecv

Description

Log the total bytes received.

Metabase Bitmask Identifier

MD_EXTLOG_BYTES_RECV

Decimal Value

8192

Hexadecimal Value

0x00002000

Flag NameLogExtFileTimeTaken

Description

Log the total time taken for a request to be completed.

Metabase Bitmask Identifier

MD_EXTLOG_TIME_TAKEN

Decimal Value

16384

Hexadecimal Value

0x00004000

Flag NameLogExtFileServerPort

Description

Log the active server port.

Metabase Bitmask Identifier

MD_EXTLOG_SERVER_PORT

Decimal Value

32768

Hexadecimal Value

0x00008000

Flag NameLogExtFileUserAgent

Description

Log the contents of the user agent field sent by the client.

Metabase Bitmask Identifier

MD_EXTLOG_USER_AGENT

Decimal Value

65536

Hexadecimal Value

0x00010000

Flag NameLogExtFileCookie

Description

Log information from the client cookie.

Metabase Bitmask Identifier

MD_EXTLOG_COOKIE

Decimal Value

131072

Hexadecimal Value

0x00020000

Flag NameLogExtFileReferer

Description

Log the referrer field sent by the client.

Metabase Bitmask Identifier

MD_EXTLOG_REFERER

Decimal Value

262144

Hexadecimal Value

0x00040000

Flag NameLogExtFileProtocolVersion

Description

Log the client server protocol version.

Metabase Bitmask Identifier

MD_EXTLOG_PROTOCOL_VERSION

Decimal Value

64

Hexadecimal Value

0x00080000

Flag NameLogExtFileHttpSubStatus

Description

Log the sub-status code of the HTTP error. For example, for the 500.20 HTTP error, the status code is 500 and the sub-status code is 20.

Metabase Bitmask Identifier

na

Decimal Value

2097152

Hexadecimal Value

na

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.



© 2016 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies
Microsoft