Use the SET ACTLOGRETENTION command to specify the retention period, in days, for server activity log records.
This command allows you to define how long activity log information is retained in the database. Activity log information includes messages, such as the following:
Because the activity log is stored in the database, the size of the activity log must be factored into the amount of space allocated for the database. The activity log size is dependent on the length of time the activity log information is retained. When the length of time is increased, the amount of accumulated data also increases and additional database storage is required. When sufficient space is not available for activity log records, ADSM suspends recording and sends messages about this condition to the server console. If you increase the size of the database, ADSM starts activity log recording again.
The server automatically deletes messages after the specified retention period expires.
Use the QUERY ACTLOG command to search for messages in the activity log.
Use the QUERY STATUS command to display the current retention period for the activity log. At installation, this value is set to 1 day.
Privilege Class
To issue this command, you must have system privilege.
Syntax
>>-Set ACTlogretention--days-----------------------------------><
Parameters
Examples
Task
Set the server to retain activity log records for 30 days.
Related Commands
Table 187. Command Related to SET ACTLOGRETENTION
Command | Description |
---|---|
QUERY ACTLOG | Searches for and displays messages from the server activity log. |