Share via


Change-log-retention-period: Stsadm property (Office SharePoint Server)

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Description

Specifies the amount of time to preserve the change logs.

This property is equivalent to the Change Log user interface setting that is located on the Web Application General Settings page of the SharePoint Central Administration Web site.

Syntax

stsadm -o setproperty

-propertyname change-log-retention-period

-propertyvalue {Numeric value in days}

[-url] <https://server_name>

The syntax for the getproperty operation is:

stsadm -o getproperty

propertyname change-log-retention-period

[-url] <https://server_name>

Note

You can substitute -pn for -propertyname and -pv for -propertyvalue.

Property values

The following table shows possible values.

Name Value

propertyname

Gets or sets the name of the property.

propertyvalue

Number of days to retain entries in the change log. The default value is 15 days.

url

Typically, a path to the URL of the Web application, in the form http://server_name.

Examples

To set the number of days to the change log to 21 days, use the following syntax:

stsadm -o setproperty -pn change-log-retention-period -pv 21