Skip to main content
A newer release of this product is available.

snaplock log create

Contributors
Suggest changes

Create audit log configuration for a Vserver.

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The `snaplock log create` command is used to create a SnapLock log configuration for the Vserver. A SnapLock log configuration consists of volume to store the log, the maximum size of the log file, and the default period of time for which the log file should be retained.

Parameters

-vserver <vserver name> - Vserver Name

Specifies the name of the Vserver for which the configuration needs to be created.

-volume <volume name> - Log Volume Name

Specifies the name of the volume that is used for logging. This must be a SnapLock Compliance volume.

[-max-log-size {<integer>[KB|MB|GB|TB|PB]}] - Maximum Size of Log File

Specifies the maximum size of the log file. Once a log file reaches this limit, it is archived and a new log file is created. This parameter is optional. The default value is 10MB .

[-default-retention-period {{<integer> seconds|minutes|hours|days|months|years} | infinite}] - Default Log Record Retention Period

Specifies the default period of time a record (which is logged) is retained. This parameter is optional. The default value is "6 months" .

Examples

cluster1::> snaplock log create -volume vol1 -max-log-size 50MB -default-retention-period "1 year" -vserver vs1
        [Job 47] Job succeeded: SnapLock log created for Vserver "vs1".