This topic describes how to enable and configure file-based log rotation for audit logs and login history logs on the EX appliance. You can rotate these log files at a specified period of time, when they reach a specified file size, or when they take up a specified percentage of disk space. Configuring the criteria for individual file types overwrites the global configuration. For a full list of logging commands and their usage and parameters, see the CLI Command Reference.
Admin access
Go to CLI configuration mode:
hostname > enable hostname # configure terminal
Enable the rotation feature for the specified file type:
hostname (config) # logging files rotation file-type {audit | login-history} criteria enableSpecify either the frequency or file size at which a new log is created:
hostname (config) # logging files rotation file-type {audit | login-history} criteria {frequency {daily | monthly | weekly | yearly} | size <megabytes> | size-pct <percentage>}