Metrics Engine Documentation Index
Configuration Reference Home

File Count Log Retention Policy

Retention policy based on the number of rotated log files on disk.

Parent Component
Properties
dsconfig Usage

Parent Component

The File Count Log Retention Policy component inherits from the Log Retention Policy

Properties

The properties supported by this managed object are as follows:


Basic Properties: Advanced Properties:
↓ description  None
↓ number-of-files

Basic Properties

description

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

number-of-files

Description
Specifies the number of archived log files to retain before the oldest ones are cleaned.
Default Value
None
Allowed Values
An integer value. Lower limit is 1.
Multi-Valued
No
Required
Yes
Admin Action Required
None. Modification requires no further action


dsconfig Usage

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 File Count Log Retention Policy:

dsconfig create-log-retention-policy
     --policy-name {name}
     --type file-count
     --set number-of-files:{propertyValue}
     [--set {propertyName}:{propertyValue}] ...

To delete an existing Log Retention Policy:

dsconfig delete-log-retention-policy
     --policy-name {name}