display logbuffer [ size value | slot slot-id | module module-name | security | level { severity | emergencies | alert | critical | error | warning | notification | informational | debugging } ] *
display logbuffer summary [ level severity | slot slot-id ] *
display logbuffer [ common-log | sec-log ] [ size value | slot slot-id | module module-name | security | vsys vsys-name | level { severity | emergencies | alert | critical | error | warning | notification | informational | debugging } ] *
display logbuffer order by module
| Parameter | Description | Value |
|---|---|---|
size value |
Displays the number of information items in the specified log buffer. |
The value is in the range of 1 to 1024. |
slot slot-id |
Specifies the slot number. |
- |
module module-name |
Specifies the name of a module. |
- |
security |
Specifies the security logs. |
- |
level severity |
Displays the severity level of the specified information. |
The value is in the range of 0 to 7. |
emergencies |
Displays the pieces of the logs of the emergency severity level. |
The severity level of the information is 0. |
alert |
Displays the pieces of the logs of the alerts severity level. |
The severity level of the information is 1. |
critical |
Displays the pieces of the logs of the critical severity level. |
The severity level of the information is 2. |
error |
Displays the pieces of the logs of the errors severity level. |
The severity level of the information is 3. |
warning |
Displays the pieces of the logs of the warning severity level. |
The severity level of the information is 4. |
notification |
Displays the pieces of the logs of the notification severity level. |
The severity level of the information is 5. |
informational |
Displays the pieces of the logs of the informational severity level. |
The severity level of the information is 6. |
debugging |
Displays the pieces of the logs of the emergency severity level. |
The severity level of the information is 7. |
summary |
Displays the summary of the log buffer. |
- |
common-log |
Displays information in the common log buffer. |
- |
sec-log |
Displays information in the security log buffer. |
- |
vsys vsys-name |
Displays information in the log buffer of the virtual system. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. |
slot-id |
Specifies the slot ID. |
- |
order by module |
Displays logs in the order of the modules to which they belong to. NOTE:
|
- |
If no parameter is specified, the display logbuffer command displays all logs of the public system recorded in the log buffer. To view logs in a virtual system, specify vsys vsys-name or run the display logbuffer command in the virtual system view.
The display logbuffer summary and display logbuffer order by module commands cannot be executed in a virtual system. To view logs in a virtual system, run the display logbuffer vsys vsys-name command to view logs of a specified virtual system.
If the information number in the current log buffer is smaller than size value, the actual items of the log information are displayed.
If the information number in the current log buffer is smaller than size value, the actual items of the log information are displayed.
# Display information about the log buffer of the root system.
<sysname> display logbuffer
Logging buffer configuration and contents : enabled
Allowed max buffer size : 2048
Actual buffer size : 1024
Channel number : 4 , Channel name : logbuffer
Dropped messages : 592
Overwritten messages : 237
Current messages : 3
Aug 15 2017 10:24:07+10:00 DST liuyan %%01SHELL/5/CMDRECORD(s)[0]:Recorded command information. (Task=VT0, Ip=1.1.1.1, VpnName=,
User=root, AuthenticationMethod="Local-user", Command="info-center logbuffer size 512")
Aug 15 2017 10:23:35+10:00 DST liuyan %%01SHELL/6/DISPLAY_CMDRECORD(s)[1]:Recorded display command information. (Task=VT0, Ip=8.32.2
3.211, VpnName=, User=root, AuthenticationMethod="Local-user", Command="display logbuffer vsys a")
Aug 15 2017 10:23:07+10:00 DST liuyan %%01ATK/4/FIREWALLATCK(l)[0]:AttackType="Large ICMP attack", slot=" ", cpu="0", receive interf
ace="GE0/0/0 ", proto="ICMP", ip="10.10.10.1->10.1.1.1", begin time=2017/08/15 10:23:05 DST, end time=2017/08/15 10:23:05 DST, tot
al packets="1", max speed="0", Action="discard".
Table 1 shows the description of the display logbuffer command output.
Item |
Description |
|---|---|
Logging buffer configuration and contents |
Status of the log buffer on the root system |
Allowed max buffer size |
Maximum capacity of the log buffer on the root system |
Actual buffer size |
Actual capacity of the log buffer on the root system |
Channel number |
Channel number. |
Channel name |
Channel name. |
Dropped messages |
Dropped messages of the log buffer on the root system |
Overwritten messages |
Overwritten messages of the log buffer on the root system |
Current messages |
Current messages. |
# Display information about the log buffer of the virtual system.
<sysname> display logbuffer vsys vsys1 Logging buffer configuration and contents : enabled Allowed max buffer size : 4096 Actual buffer size : 4096 Channel number : 4 , Channel name : logbuffer Dropped messages : 0 Overwritten messages : 0 Current messages : 3
Table 2 shows the description of the display logbuffer vsys vsys1 command output.
Item |
Description |
|---|---|
Logging buffer configuration and contents |
Status of the log buffer on the virtual system |
Allowed max buffer size |
Maximum capacity of the log buffer shared among all virtual systems |
Actual buffer size |
Actual capacity of the log buffer shared among all virtual systems |
Channel number |
Channel number. |
Channel name |
Channel name. |
Dropped messages |
Dropped messages of the log buffer shared among all virtual systems |
Overwritten messages |
Overwritten messages of the log buffer shared among all virtual systems |
Current messages |
Current messages of a single virtual system, namely, current related messages of vsys1 |
# Display the SNMP-generated log messages saved in the log buffer.
<sysname> display logbuffer module snmp Logging buffer configuration and contents: enabled Allowed max buffer size: 1024 Actual buffer size: 512 Channel number: 4 , Channel name: logbuffer Dropped messages: 0 Overwritten messages: 0 Current messages: 0 Nov 27 2014 11:02:19 HUAWEI %%01SNMP/4/AR_PAF_FAILED(l)[2]:Failed to read PAF or License.
Display logs in the order of the modules they belong to.
<sysname> display logbuffer order by module Logging buffer configuration and contents : enabled Allowed max buffer size : 1024 Actual buffer size : 1024 Channel number : 4 , Channel name : logbuffer Dropped messages : 0 Overwritten messages : 0 Current messages : 8 2015/10/31 10:05:26 242 %%01SOCKET/1/BINDPEERIP(l)[0]:Failed to bind the peer IP because a socket with same state already existed. 2015/10/31 10:05:24 242 %%01CFM/3/RECOVERCMDFAIL(s)[1]:Failed to recover configuration test under view test. 2015/10/31 10:05:21 242 %%01CFM/5/SAVECFG_YES(s)[2]:When being asked whether to save current configuration, the user chose Y. 2015/10/31 10:05:15 242 %%01CFM/5/SUMRULECANCEL(l)[3]:The daylight-saving-time config is canceled. 2015/10/31 10:05:19 242 %%01INFO/4/RST_LOGB(s)[4]:When deciding whether to reset the logbuffer, the user chose test. 2015/10/31 10:05:13 242 %%01INFO/5/FILTERINFOID_FAIL(s)[5]:Failed to execute the info-center filter-id command. (Task=test, Ip=test, VpnName=test, User=test, Parameter="test") 2015/10/31 10:05:17 242 %%01SNMP/4/SNMP_LOCK_FULL(s)[6]:SNMP lock queue has been full. 2015/10/31 10:05:11 242 %%01SNMP/6/SNMP_CNFM_CHANGEUDPORT(s)[7]:When being asked whether to execute the command "test", the user chose test.
Item |
Description |
|---|---|
Logging buffer configuration and contents |
Status of the logging buffer |
Allowed max buffer size |
Maximum logging buffer size |
Actual buffer size |
Actual logging buffer size |
Channel number |
Channel number |
Channel name |
Channel name |
Dropped messages |
Discarded messages |
Overwritten messages |
Superseded messages |
Current messages |
Current messages |
# Display the summary of the log buffer.
<sysname> display logbuffer summary
SLOT EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
9 0 0 0 0 0 0 0 0
0 0 0 1 16 100 0 0 0
3 0 0 4 1 5 0 0 0
6/0 0 0 0 0 4 0 0 0
6/1 0 0 0 0 0 0 0 0
6/2 0 0 0 0 0 0 0 0
6/3 0 0 0 0 0 0 0 0
Item |
Description |
|---|---|
SLOT |
The slot number |
EMERG |
Number of the logs at the emergency level |
ALERT |
Number of the logs at the alert level |
CRIT |
Number of the logs at the critical level |
ERROR |
Number of the logs at the error level |
WARN |
Number of the logs at the warning level |
NOTIF |
Number of the logs at the notification level |
INFO |
Number of the logs at the informational level |
DEBUG |
Number of the logs at the debugging level |
# Displays information in the security log buffer.
<sysname> display logbuffer sec-log Logging buffer configuration and contents : enabled Allowed max buffer size : 1024 Actual buffer size : 512 Channel number : 4 , Channel name : logbuffer Dropped messages : 0 Overwritten messages : 0 Current messages : 0