Use this command to manage the activity log records by date or size. The activity log contains normal activity messages generated by the server. These messages include information about server and client operations, such as the start time of sessions or device I/O errors.
You can choose to adjust the length of time that the activity log retains messages to avoid insufficient or outdated data. The server automatically removes the messages from the activity log after the retention period passes.
Alternatively, you can choose to limit the total size of the activity log to control the amount of space occupied by the activity log. The server will periodically remove the oldest activity log records until the activity log size no longer exceeds the configured maximum size allowed.
You can issue the QUERY STATUS command to display the current number of records in the activity log and the size (in megabytes) that the activity log currently occupies.
To issue this command, you must have system privilege.
.-Mgmtstyle--=--Date-----. >>-Set ACTlogretention--number--+------------------------+----->< '-Mgmtstyle--=--+-Date-+-' '-Size-'
set actlogretention 60
set actlogretention 300 mgmtstyle=size
Command | Description |
---|---|
QUERY ACTLOG | Displays messages from the server activity log. |
QUERY STATUS | Displays the settings of server parameters, such as those selected by the SET commands. |