Size Limit Log Rotation Policy

Rotation policy based on the size of the log file.

Parent Component Properties dsconfig Usage

Parent Component

The Size Limit Log Rotation Policy component inherits from the Log Rotation Policy

Properties

The properties supported by this managed object are as follows:


Basic Properties: Advanced Properties:
 description  None
 file-size-limit

Basic Properties

description

Description
A description for this Log Rotation Policy
Default Value
None
Allowed Values
A string
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action

file-size-limit

Description
Specifies the maximum size that a log file can reach before it is rotated.
Default Value
None
Allowed Values
A positive integer representing a size. 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 Rotation Policies:

dsconfig list-log-rotation-policies
     [--property {propertyName}] ...

To view the configuration for an existing Log Rotation Policy:

dsconfig get-log-rotation-policy-prop
     --policy-name {name}
     [--tab-delimited]
     [--script-friendly]
     [--property {propertyName}] ...

To update the configuration for an existing Log Rotation Policy:

dsconfig set-log-rotation-policy-prop
     --policy-name {name}
     (--set|--add|--remove) {propertyName}:{propertyValue}
     [(--set|--add|--remove) {propertyName}:{propertyValue}] ...

To create a new Size Limit Log Rotation Policy:

dsconfig create-log-rotation-policy
     --policy-name {name}
     --type size-limit
     --set file-size-limit:{propertyValue}
     [--set {propertyName}:{propertyValue}] ...

To delete an existing Log Rotation Policy:

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