Share via


LogFileTruncateSize

LogFileTruncateSize specifies the maximum size of the log file, in bytes. A new log file is created if a logging event causes the original log file to exceed the size specified in this property.

note Note The minimum file size allowed is 131,072 bytes. If this property is set to a value less than 131,072 bytes, the default value is implicitly assumed as 131,072 bytes.

Attribute Name Attribute Value
XML Data Type DWORD
WMI Data Type
SINT32
ADSI Data Type DWORD
ABO Data Type DWORD
ABO Metabase identifier
MD_LOGFILE_TRUNCATE_SIZE
Attributes INHERIT
Default Value 2000000
MetaFlagsEx CACHE_PROPERTY_MODIFIED
User Type IIS_MD_UT_SERVER
StartingNumber Not applicable
EndingNumber Not applicable
ID 4004

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

Code Example

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