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

SharePoint 2007

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.

 

Topic Last Modified: 2015-03-09

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.

stsadm -o setproperty

   -propertyname change-log-retention-period

   -propertyvalue {Numeric value in days}

   [-url] <http://server_name>

The syntax for the getproperty operation is:

stsadm -o getproperty

   propertyname change-log-retention-period

   [-url] <http://server_name>

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

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.

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

Show: