Compartir a través de


LogExtFileFlags Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

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 Name Attribute 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 Path IIS 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 Name LogExtFileDate

Description

Log the date.

Metabase Bitmask Identifier

MD_EXTLOG_DATE

Decimal Value

1

Hexadecimal Value

0x00000001

Flag Name LogExtFileHost

Description

Log the name of host server.

Metabase Bitmask Identifier

MD_EXTLOG_HOST

Decimal Value

1048576

Hexadecimal Value

0x00100000

Flag Name LogExtFileTime

Description

Log the time.

Metabase Bitmask Identifier

MD_EXTLOG_TIME

Decimal Value

2

Hexadecimal Value

0x00000002

Flag Name LogExtFileClientIp

Description

Log the client IP address.

Metabase Bitmask Identifier

MD_EXTLOG_CLIENT_IP

Decimal Value

4

Hexadecimal Value

0x00000004

Flag Name LogExtFileUserName

Description

Log the username.

Metabase Bitmask Identifier

MD_EXTLOG_USERNAME

Decimal Value

8

Hexadecimal Value

0x00000008

Flag Name LogExtFileSiteName

Description

Log the site name.

Metabase Bitmask Identifier

MD_EXTLOG_SITE_NAME

Decimal Value

16

Hexadecimal Value

0x00000010

Flag Name LogExtFileComputerName

Description

Log the local computer name.

Metabase Bitmask Identifier

MD_EXTLOG_COMPUTER_NAME

Decimal Value

32

Hexadecimal Value

0x00000020

Flag Name LogExtFileServerIp

Description

Log the server's own IP address.

Metabase Bitmask Identifier

MD_EXTLOG_SERVER_IP

Decimal Value

64

Hexadecimal Value

0x00000040

Flag Name LogExtFileMethod

Description

Log the protocol method.

Metabase Bitmask Identifier

MD_EXTLOG_METHOD

Decimal Value

128

Hexadecimal Value

0x00000080

Flag Name LogExtFileUriStem

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 Name LogExtFileUriQuery

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 Name LogExtFileHttpStatus

Description

Log the HTTP status.

Metabase Bitmask Identifier

MD_EXTLOG_HTTP_STATUS

Decimal Value

1024

Hexadecimal Value

0x00000400

Flag Name LogExtFileWin32Status

Description

Log the current Microsoft Win32 error status.

Metabase Bitmask Identifier

MD_EXTLOG_WIN32_STATUS

Decimal Value

2048

Hexadecimal Value

0x00000800

Flag Name LogExtFileBytesSent

Description

Log the total bytes sent.

Metabase Bitmask Identifier

MD_EXTLOG_BYTES_SENT

Decimal Value

4096

Hexadecimal Value

0x00001000

Flag Name LogExtFileBytesRecv

Description

Log the total bytes received.

Metabase Bitmask Identifier

MD_EXTLOG_BYTES_RECV

Decimal Value

8192

Hexadecimal Value

0x00002000

Flag Name LogExtFileTimeTaken

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 Name LogExtFileServerPort

Description

Log the active server port.

Metabase Bitmask Identifier

MD_EXTLOG_SERVER_PORT

Decimal Value

32768

Hexadecimal Value

0x00008000

Flag Name LogExtFileUserAgent

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 Name LogExtFileCookie

Description

Log information from the client cookie.

Metabase Bitmask Identifier

MD_EXTLOG_COOKIE

Decimal Value

131072

Hexadecimal Value

0x00020000

Flag Name LogExtFileReferer

Description

Log the referrer field sent by the client.

Metabase Bitmask Identifier

MD_EXTLOG_REFERER

Decimal Value

262144

Hexadecimal Value

0x00040000

Flag Name LogExtFileProtocolVersion

Description

Log the client server protocol version.

Metabase Bitmask Identifier

MD_EXTLOG_PROTOCOL_VERSION

Decimal Value

64

Hexadecimal Value

0x00080000

Flag Name LogExtFileHttpSubStatus

Description

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

Metabase Bitmask Identifier

na

Decimal Value

2097152

Hexadecimal Value

0x00200000

Code Example

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