次の方法で共有


LogExtFileFlags

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.

Schema Attributes

Attribute Name

Value

ADSI/WMI Data Type

DWORD

ABO Data Type

DWORD_METADATA

Schema Default

LogExtFileTime | LogExtFileClientIp | LogExtFileMethod | LogExtFileUriStem | LogExtFileHttpStatus

Internal Default

LogExtFileDate | LogExtFileTime | LogExtFileClientIp | LogExtFileUserName | LogExtFileServerIp | LogExtFileMethod | LogExtFileUriStem | LogExtFileUriQuery | LogExtFileHttpStatus | LogExtFileWin32Status | LogExtFileServerPort | LogExtFileUserAgent | LogExtFileHttpSubStatus

Upper Bound

0

Lower Bound

Not specified

Internal ID

4013

Friendly ID

MD_LOGEXT_FIELD_MASK

Property Attributes

INHERIT

User Type

IIS_MD_UT_SERVER

Configurable Locations

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

Metabase Path

IIS Admin Object Type

/LM/W3SVC

IIsWebService

/LM/MSFTPSVC

IIsFtpService

/LM/W3SVC/n

IIsWebServer

/LM/MSFTPSVC/n

IIsFtpServer

/LM/NNTPSVC

IIsNntpService

/LM/NNTPSVC/n

IIsNntpServer

/LM/SMTPSVC

IIsSmtpService

/LM/SMTPSVC/n

IIsSmtpServer

Flags

Flag Name

LogExtFileBytesRecv

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the total bytes received.

Bitmask

8192 (hex 0x00002000)

Friendly Bitmask ID

MD_EXTLOG_BYTES_RECV

Internal ID

6247

Flag Name

LogExtFileBytesSent

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the total bytes sent.

Bitmask

4096 (hex 0x00001000)

Friendly Bitmask ID

MD_EXTLOG_BYTES_SENT

Internal ID

6246

Flag Name

LogExtFileClientIp

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the client IP address.

Bitmask

4 (hex 0x00000004)

Friendly Bitmask ID

MD_EXTLOG_CLIENT_IP

Internal ID

6236

Flag Name

LogExtFileComputerName

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the local computer name.

Bitmask

32 (hex 0x00000020)

Friendly Bitmask ID

MD_EXTLOG_COMPUTER_NAME

Internal ID

6239

Flag Name

LogExtFileCookie

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log information from the client cookie.

Bitmask

131072 (hex 0x00020000)

Friendly Bitmask ID

MD_EXTLOG_COOKIE

Internal ID

6251

Flag Name

LogExtFileDate

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the date.

Bitmask

1 (hex 0x00000001)

Friendly Bitmask ID

MD_EXTLOG_DATE

Internal ID

6234

Flag Name

LogExtFileHost

Versions Applicable

[IIS 5.1][IIS 6.0]

Description

Log the name of host server.

Bitmask

1048576 (hex 0x00100000)

Friendly Bitmask ID

MD_EXTLOG_HOST

Internal ID

6287

Flag Name

LogExtFileHttpStatus

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the HTTP status.

Bitmask

1024 (hex 0x00000400)

Friendly Bitmask ID

MD_EXTLOG_HTTP_STATUS

Internal ID

6244

Flag Name

LogExtFileHttpSubStatus

Versions Applicable

[IIS 6.0]

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.

Bitmask

2097152 (hex 0x00200000)

Friendly Bitmask ID

No friendly named is defined for this identifier in iiscfng.h. Use the ID attribute listed below.

Internal ID

6309

Flag Name

LogExtFileMethod

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the protocol method.

Bitmask

128 (hex 0x00000080)

Friendly Bitmask ID

MD_EXTLOG_METHOD

Internal ID

6241

Flag Name

LogExtFileProtocolVersion

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the client server protocol version.

Bitmask

524288 (hex 0x00080000)

Friendly Bitmask ID

MD_EXTLOG_PROTOCOL_VERSION

Internal ID

6268

Flag Name

LogExtFileReferer

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the referrer field sent by the client.

Bitmask

262144 (hex 0x00040000)

Friendly Bitmask ID

MD_EXTLOG_REFERER

Internal ID

6252

Flag Name

LogExtFileServerIp

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the server's own IP address.

Bitmask

64 (hex 0x00000040)

Friendly Bitmask ID

MD_EXTLOG_SERVER_IP

Internal ID

6240

Flag Name

LogExtFileServerPort

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the active server port.

Bitmask

32768 (hex 0x00008000)

Friendly Bitmask ID

MD_EXTLOG_SERVER_PORT

Internal ID

6249

Flag Name

LogExtFileSiteName

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the site name.

Bitmask

16 (hex 0x00000010)

Friendly Bitmask ID

MD_EXTLOG_SITE_NAME

Internal ID

6238

Flag Name

LogExtFileTime

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the time.

Bitmask

2 (hex 0x00000002)

Friendly Bitmask ID

MD_EXTLOG_TIME

Internal ID

6235

Flag Name

LogExtFileTimeTaken

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

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

Bitmask

16384 (hex 0x00004000)

Friendly Bitmask ID

MD_EXTLOG_TIME_TAKEN

Internal ID

6248

Flag Name

LogExtFileUriQuery

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

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.

Bitmask

512 (hex 0x00000200)

Friendly Bitmask ID

MD_EXTLOG_URI_QUERY

Internal ID

6243

Flag Name

LogExtFileUriStem

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

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

Bitmask

256 (hex 0x00000100)

Friendly Bitmask ID

MD_EXTLOG_URI_STEM

Internal ID

6242

Flag Name

LogExtFileUserAgent

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

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

Bitmask

65536 (hex 0x00010000)

Friendly Bitmask ID

MD_EXTLOG_USER_AGENT

Internal ID

6250

Flag Name

LogExtFileUserName

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the user name.

Bitmask

8 (hex 0x00000008)

Friendly Bitmask ID

MD_EXTLOG_USERNAME

Internal ID

6237

Flag Name

LogExtFileWin32Status

Versions Applicable

[IIS 5.0][IIS 5.1][IIS 6.0]

Description

Log the current Microsoft ? Win32 ? error status.

Bitmask

2048 (hex 0x00000800)

Friendly Bitmask ID

MD_EXTLOG_WIN32_STATUS

Internal ID

6245

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also