The info-center rate-limit threshold command sets the maximum number of logs with the same log ID that the information center can process every second.
The undo info-center rate-limit threshold command restores the default setting.
By default, the information center processes a maximum of 30 logs with the same log ID in every second.
info-center rate-limit threshold value [ byinfoid infoID | bymodule-alias modname alias ]
undo info-center rate-limit threshold [ value ] [ byinfoid infoID | bymodule-alias modname alias ]
Parameter | Description | Value |
---|---|---|
value | Specifies the maximum number of logs with the same log ID that the information center can process every second. | The value is an integer that ranges from 1 to 500. |
byinfoid infoID | Specifies the log ID. | The value is a 32-digit hexadecimal number in the format XXXXXXXX. It ranges from 0 to ffffffff. |
bymodule-alias modname | Specifies the log of the module name. | The value is a string of 1 to 24 case-insensitive characters without spaces. |
alias | Specifies the log of the mnemonic name. | The value is a string of 1 to 64 case-insensitive characters without spaces. |
You can run the info-center rate-limit threshold command to set the maximum number of logs with the same log ID that the information center can process every second. The information center monitors the number of logs that are generated every second under the same log ID. When the number of logs that are generated every second under the same log ID exceeds the threshold in the monitoring period, the information center decides that too many logs are generated and suppresses its log processing rate by processing only the conforming traffic (logs within the threshold) and discarding the non-conforming traffic (logs exceeding the threshold). When the number of logs that are generated every second under the same log ID falls below the threshold and remains below the threshold for five monitoring periods, the information center removes the suppression.
<HUAWEI> system-view [HUAWEI] info-center rate-limit threshold 60
<HUAWEI> system-view [HUAWEI] info-center rate-limit threshold 30 bymodule-alias AAA AUTHEN_ERR_EVENT
<HUAWEI> system-view [HUAWEI] info-center rate-limit threshold 20 byinfoid ff011015
<HUAWEI> system-view [HUAWEI] undo info-center rate-limit threshold
<HUAWEI> system-view [HUAWEI] undo info-center rate-limit threshold bymodule-alias AAA AUTHEN_ERR_EVENT