Usage Scenario
In the system,
service modules generate logs and control the volume of generated
logs. The information center processes the received logs.
A
large number of repeated logs are generated in a short time in some
scenarios, for example, when ARP
and VRRP are enabled. This
wastes both the storage space and CPU resources. Generally, users
do not want to view the repeated logs. You can run the
info-center
statistic-suppress enable command to suppress statistics
on consecutive repeated logs so that the system can still record other
logs.
Logs that are generated consecutively and with
the identical log ID and parameters can be regarded as repeatedly
generated logs.
Precautions
Statistics about
repeatedly generated logs are first output at the 30th seconds from
the time the first log is output, and then statistics about repeatedly
generated logs are output at the 120th seconds. After being output
two times, statistics about repeatedly generated logs are output every
600 seconds.
By default, once receiving a log,
the information center outputs the log. If the information center
receives repeatedly generated logs within a period, it outputs the
number of these logs and will output logs only when it receives a
new log (a log with a different log ID). For example, a module sends
logs to the information center in the sequence of A1(T1) A2(T2) A3(T2)
B1(T3) B2(T4) B3(T4) C1(T5) C2(T6) A4(T7) B4(T8) B5(T8) B5(T8) B7(T9)
A5(T9) B8(T10) D1(T11) A6(T11) A7(T12) A8(T12) A9(T13) A10(T14) A11(T15)
A12(T16) A13(T17) A14(T18) B9(T18). A1 to A14 are the same; B1 to
B9 are the same; C1, C2 and D1 are different from others; T1 to T18
are sequence numbers. The log information output by the information
center is as follows:
T1:A1
T3(1): last message repeated 2 times
T3:B1
T5: last message repeated 2 times
T5:C1
T6:C2
T7:A4
T8:B4
T9(1): last message repeated 3 times
T9:A5
T10:B8
T11:D1
T11:A6
T13(2): last message repeated 3 times
T18(2): last message repeated 5 times
T18:B9
Logs of the service module received
by the information center show that:
- Statistics about repeatedly generated logs are output when either
of the following conditions is met:
- The next log is a different log, as shown in (1).
- The time period (every 30 seconds, 120 seconds, and 600 seconds)
for outputting log statistics expires, as shown in (2).
- Each time the statistics are output, the service module clears
the count and starts counting again. For example, during the period
from T11 to T18, log A is generated 9 times.
- The information center outputs logs in the same sequence the logs
are generated, making the trace of information and scenario easy.
Logs with the sequence
being A B A B A B A B are alternate logs; therefore, the info-center statistic-suppress enable command is unable
to suppression the statistics about these logs.