Changing the time frequency for log rotation
By default, the product rotates the log files daily. Enter the command at the configuration context in the CLI.
Prerequisites
You must be in the configuration context:
switch(config)#
Procedure
At the configuration context, enter:
logrotate period {daily | hourly | weekly | monthly }
daily:旋转the log files daily. It is the default option.
hourly:旋转the log files hourly.
weekly:旋转the log files every week.
monthly:旋转the log files every month.
Example command
开关(配置)# logrotate每周