LogFilePeriod Metabase Property (IIS 6.0)

The LogFilePeriod property specifies how often IIS creates a new log file. This property can be set to the following values as seen in the Bitmask Values section: 1 (daily), 2 (weekly), 3 (monthly), or 4 (hourly). If this property is set to 0, a new file will be created when the maximum size designated in LogFileTruncateSize Metabase Property is reached.

Attribute NameAttribute Value

XML Data Type

DWORD

WMI Data Type

SINT32

ADSI Data Type

DWORD

ABO Data Type

DWORD

ABO Metabase Identifier

MD_LOGFILE_PERIOD

Attributes

INHERIT

Default Value

1

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

4003

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

Values

ConstantValueDescription

MD_LOGFILE_PERIOD_MAXSIZE

0x00000000

Create new log file after reaching the maximum size.

MD_LOGFILE_PERIOD_DAILY

0x00000001

Create new log file daily.

MD_LOGFILE_PERIOD_WEEKLY

0x00000002

Create new log file weekly.

MD_LOGFILE_PERIOD_MONTHLY

0x00000003

Create new log file monthly.

MD_LOGFILE_PERIOD_HOURLY

0x00000004

Create a new log file hourly.

Code Example

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

Related Information

LogFileTruncateSize Metabase Property



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