Retention policy based on the age of the files on disk.
The Time Limit Log Retention Policy component inherits from the Log Retention Policy
The properties supported by this managed object are as follows:
Basic Properties: | Advanced Properties: |
---|---|
description | None |
retain-duration |
Description | A description for this Log Retention Policy |
Default Value | None |
Allowed Values | A string |
Multi-Valued | No |
Required | No |
Admin Action Required | None. Modification requires no further action |
Description | Specifies the desired minimum length of time that each log file should be retained. |
Default Value | None |
Allowed Values | A duration. Lower limit is 1 milliseconds. |
Multi-Valued | No |
Required | Yes |
Admin Action Required | None. Modification requires no further action |
To list the configured Log Retention Policies:
dsconfig list-log-retention-policies [--property {propertyName}] ...
To view the configuration for an existing Log Retention Policy:
dsconfig get-log-retention-policy-prop --policy-name {name} [--tab-delimited] [--script-friendly] [--property {propertyName}] ...
To update the configuration for an existing Log Retention Policy:
dsconfig set-log-retention-policy-prop --policy-name {name} (--set|--add|--remove) {propertyName}:{propertyValue} [(--set|--add|--remove) {propertyName}:{propertyValue}] ...
To create a new Time Limit Log Retention Policy:
dsconfig create-log-retention-policy --policy-name {name} --type time-limit --set retain-duration:{propertyValue} [--set {propertyName}:{propertyValue}] ...
To delete an existing Log Retention Policy:
dsconfig delete-log-retention-policy --policy-name {name}