Saving security logs to the security log file

After you enable the saving of the security logs to the security log file:

The device supports only one security log file. To avoid security log loss, you can set an alarm threshold for the security log file usage. When the alarm threshold is reached, the system outputs a message to inform the administrator. The administrator can log in to the device with the security-audit user role and back up the security log file to prevent the loss of important data.

To save security logs to the security log file:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable the information center.

info-center enable

By default, the information center is enabled.

3. Enable the saving of the security logs to the security log file.

info-center security-logfile enable

By default, saving security logs to the security log file is disabled.

4. Set the interval at which the system saves security logs.

info-center security-logfile frequency freq-sec

The default security log file saving interval is 86400 seconds.

5. (Optional.) Set the maximum size for the security log file.

info-center security-logfile size-quota size

The default setting is 10 MB.

6. (Optional.) Set the alarm threshold of the security log file usage.

info-center security-logfile alarm-threshold usage

By default, the alarm threshold of the security log file usage is 80. When the usage of the security log file reaches 80%, the system will inform the user.